Skip to content

test with java 17#234

Merged
monperrus merged 4 commits intomasterfrom
java17
Aug 8, 2024
Merged

test with java 17#234
monperrus merged 4 commits intomasterfrom
java17

Conversation

@monperrus
Copy link
Copy Markdown
Contributor

let CI 🌞

@monperrus
Copy link
Copy Markdown
Contributor Author

Dynamoth is not compatible with Java 17.

Failed tests:
NopolTest.testDynamoth:286 expected:<10> but was:<0>

Tests in error:
DynamothCodeGenesisTest.test12:178->createSynthesizer:239 » IndexOutOfBounds I...
DynamothCodeGenesisTest.test13:209->createSynthesizer:239 » NullPointer Cannot...
DynamothCodeGenesisTest.test1:52->test:244->createSynthesizer:239 » IndexOutOfBounds
DynamothCodeGenesisTest.test2:70->test:244->createSynthesizer:239 » IndexOutOfBounds
DynamothCodeGenesisTest.test3:88->test:244->createSynthesizer:239 » IndexOutOfBounds
DynamothCodeGenesisTest.test4:108->createSynthesizer:239 » IndexOutOfBounds In...
DynamothCodeGenesisTest.test5:127->test:244->createSynthesizer:239 » IndexOutOfBounds
DynamothCodeGenesisTest.test6:142->test:244->createSynthesizer:239 » IndexOutOfBounds
DynamothCodeGenesisTest.test8:163->test:244->createSynthesizer:239 » IndexOutOfBounds

@monperrus
Copy link
Copy Markdown
Contributor Author

Error

java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException: Unable to make abstract boolean com.sun.tools.jdi.ReferenceTypeImpl.isAssignableTo(com.sun.jdi.ReferenceType) accessible: module jdk.jdi does not "opens com.sun.tools.jdi" to unnamed module 
java.lang.IllegalAccessError: class fr.inria.lille.repair.expression.value.Value$1 (in unnamed module @0x5577140b) cannot access class sun.reflect.generics.reflectiveObjects.NotImplementedException (in module java.base) because module java.base does not export sun.reflect.generics.reflectiveObjects to unnamed module @0x5577140b 

Solution add parameter add-opens to surefire

            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.14.1</version>
                <configuration>
                    <argLine>-Xms2048m -Xmx2048m -cp ${java.home.openjdk11}/jmods/jdk.jdi.jmod --add-opens jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED --add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED</argLine>
                </configuration>
            </plugin>

@monperrus monperrus merged commit 04e8c9a into master Aug 8, 2024
@monperrus monperrus deleted the java17 branch August 8, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant