defects4j icon indicating copy to clipboard operation
defects4j copied to clipboard

version of Defects4 for Java 11

Open monperrus opened this issue 3 years ago • 4 comments

Hi @rjust, all!

Java 11 is now well established and has been released more than 3 years ago in September 2018.

Some bugs in Defects4 are not compatible with Java 11 (eg Lang 5x).

What about preparing a version of Defects4 for Java 11?

cc/ @martinezmatias @sophiehye

monperrus avatar Jan 31 '22 09:01 monperrus

FTR, I have successfully ported four old Lang bugs to Java 11+: Lang44, Lang51, Lang53, Lang58

https://github.com/Spirals-Team/defects4j-repair/tree/Lang44-Java6 https://github.com/Spirals-Team/defects4j-repair/tree/Lang51-Java6 https://github.com/Spirals-Team/defects4j-repair/tree/Lang53-Java6 https://github.com/Spirals-Team/defects4j-repair/tree/Lang58-Java6

We use them in the CI of Nopol to make sure we can still repair the bugs we could repair before.

monperrus avatar Feb 03 '22 08:02 monperrus

FTR, we've identified the subset of 339 bugs from Defects4J that can be successfully compiled to Java 11 bytecode with OpenJDK 11.

cc/ @andre15silva @martinezmatias

monperrus avatar Jun 01 '22 13:06 monperrus

FYI, the ant command uses an option which is deprecated and ignored since Java 8 (XX:MaxPermSize). Ref: https://knowledgebase.progress.com/articles/Article/JDK-8-warning-PermSize-and-MaxPermSize-JVM-arguments-are-ignored

For later version of Java, the command won't even execute due to that option being set. I've implemented a possible fix here: https://github.com/andre15silva/defects4j/commit/bc620782ebc53fb490d73c698e1f5d69f3130929

andre15silva avatar Jun 01 '22 13:06 andre15silva

List of the 340 bugs that are compatible with Java 11: https://github.com/ASSERT-KTH/flacoco_experiment/blob/main/flacoco/results_faultlocalization/java11_bugs.csv

monperrus avatar Sep 06 '23 04:09 monperrus