Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] testing aspectJ master branch fails at testAddModulesJDK_gh145

Hi,

I tried building aspectJ from source, did a './mvnw clean install' and am getting errors as below during the "tests" submodule. Can someone throw in a clue as to what is going on?

Thanks,
Uri.

[ERROR] Tests run: 3187, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 611.064 s <<< FAILURE! - in org.aspectj.tests.TestsModuleTests
[ERROR] testAddModulesJDK_gh145(org.aspectj.systemtest.ajc199.Bugs199Tests)  Time elapsed: 0.052 s  <<< FAILURE!
junit.framework.AssertionFailedError:
test "use --add-modules with non-public JDK module" failed'
test "use --add-modules with non-public JDK module" failed
Unexpected error messages:
        error invalid module name: jdk.charsets
        error at import sun.nio.cs.ext.ExtendedCharsets;
       ^^^^^^^^^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:2:0::0 The import sun.nio.cs.ext cannot be resolved
        error at static ExtendedCharsets charsets = new ExtendedCharsets();
       ^^^^^^^^^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:12:0::0 ExtendedCharsets cannot be resolved to a type
        error at static ExtendedCharsets charsets = new ExtendedCharsets();
                                       ^^^^^^^^^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:12:0::0 ExtendedCharsets cannot be resolved to a type
        error at static Charset iso2022jp = charsets.charsetForName("ISO-2022-JP");
                           ^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:13:0::0 ExtendedCharsets cannot be resolved to a type
        error at static Charset jis = charsets.charsetForName("jis");
                     ^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:14:0::0 ExtendedCharsets cannot be resolved to a type
        error at static Charset jis_encoding = charsets.charsetForName("jis_encoding");
                              ^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:15:0::0 ExtendedCharsets cannot be resolved to a type

Command: 'ajc -classpath /usr/lib/jvm/java-17-openjdk-17.0.3.0.7-2.fc36.x86_64/lib/jrt-fs.jar:/home/uri/aspectj/runtime/target/classes::../testing-client/target/classes:../runtime/target/classes:../bcel-builder/target/classes:/home/uri/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:../bridge/target/classes:../loadtime/target/classes:../weaver/target/classes:../org.aspectj.matcher/target/classes:../bridge/target/classes:/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp -9 --add-modules jdk.charsets --add-exports jdk.charsets/sun.nio.cs.ext=ALL-UNNAMED /tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java -d /tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp
        at org.aspectj.systemtest.ajc199.Bugs199Tests.testAddModulesJDK_gh145(Bugs199Tests.java:77)

[ERROR] testAnnotationFieldBindingOptimization_356612(org.aspectj.systemtest.ajc1612.Ajc1612Tests)  Time elapsed: 0.125 s  <<< FAILURE!
junit.framework.AssertionFailedError: Exception thrown by AnnoBinding.main(String[]) :java.lang.RuntimeException: Accessing annotation via bound parameter should be faster than reflective access: bound = 53,454,826, reflective = 52,562,262
        at org.aspectj.systemtest.ajc1612.Ajc1612Tests.testAnnotationFieldBindingOptimization_356612(Ajc1612Tests.java:168)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   Ajc1612Tests.testAnnotationFieldBindingOptimization_356612:168->XMLBasedAjcTestCase.runTest:171->XMLBasedAjcTestCase.runTest:157->AjcTestCase.run:773 Exception thrown by AnnoBinding.main(String[]) :java.lang.RuntimeException: Accessing annotation via bound parameter should be faster than reflective access: bound = 53,454,826, reflective = 52,562,262
[ERROR]   Bugs199Tests.testAddModulesJDK_gh145:77->XMLBasedAjcTestCase.runTest:171->XMLBasedAjcTestCase.runTest:157->AjcTestCase.assertMessages:479 test "use --add-modules with non-public JDK module" failed'
test "use --add-modules with non-public JDK module" failed
Unexpected error messages:
        error invalid module name: jdk.charsets
        error at import sun.nio.cs.ext.ExtendedCharsets;
       ^^^^^^^^^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:2:0::0 The import sun.nio.cs.ext cannot be resolved
        error at static ExtendedCharsets charsets = new ExtendedCharsets();
       ^^^^^^^^^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:12:0::0 ExtendedCharsets cannot be resolved to a type
        error at static ExtendedCharsets charsets = new ExtendedCharsets();
                                       ^^^^^^^^^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:12:0::0 ExtendedCharsets cannot be resolved to a type
        error at static Charset iso2022jp = charsets.charsetForName("ISO-2022-JP");
                           ^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:13:0::0 ExtendedCharsets cannot be resolved to a type
        error at static Charset jis = charsets.charsetForName("jis");
                     ^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:14:0::0 ExtendedCharsets cannot be resolved to a type
        error at static Charset jis_encoding = charsets.charsetForName("jis_encoding");
                              ^^^^^
/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java:15:0::0 ExtendedCharsets cannot be resolved to a type

Command: 'ajc -classpath /usr/lib/jvm/java-17-openjdk-17.0.3.0.7-2.fc36.x86_64/lib/jrt-fs.jar:/home/uri/aspectj/runtime/target/classes::../testing-client/target/classes:../runtime/target/classes:../bcel-builder/target/classes:/home/uri/.m2/repository/junit/junit/4.13.2/junit-4.13.2.jar:../bridge/target/classes:../loadtime/target/classes:../weaver/target/classes:../org.aspectj.matcher/target/classes:../bridge/target/classes:/tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp -9 --add-modules jdk.charsets --add-exports jdk.charsets/sun.nio.cs.ext=ALL-UNNAMED /tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp/UseJDKExtendedCharsets.java -d /tmp/ajcSandbox/aspectj/ajcTest17578037576843902323.tmp

Back to the top