Bug#1011775: jamm: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests
Emmanuel Bourg
ebourg at apache.org
Thu May 26 17:48:29 BST 2022
Source: jamm
Version: 0.3.3-3
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
jamm fails to build with OpenJDK 17, the tests make an illegal
reflective access into java.base/java.lang:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.github.jamm.MemoryMeterTest
[ERROR] Tests run: 20, Failures: 1, Errors: 2, Skipped: 5, Time elapsed: 0.147 s <<< FAILURE! - in org.github.jamm.MemoryMeterTest
[ERROR] testPrimitives(org.github.jamm.MemoryMeterTest) Time elapsed: 0.005 s <<< ERROR!
java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @768debd
at org.github.jamm.MemoryMeterTest.testPrimitives(MemoryMeterTest.java:443)
[ERROR] testUnmeteredAnnotationOnFields(org.github.jamm.MemoryMeterTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @768debd
at org.github.jamm.MemoryMeterTest.testUnmeteredAnnotationOnFields(MemoryMeterTest.java:614)
[ERROR] testByteBuffer(org.github.jamm.MemoryMeterTest) Time elapsed: 0 s <<< FAILURE!
java.lang.AssertionError: Shallow empty ByteBuffer expected:<48> but was:<56>
at org.github.jamm.MemoryMeterTest.testByteBuffer(MemoryMeterTest.java:478)
[INFO] Running org.github.jamm.GuessTest
Guessed 16, instrumented 24 for {LONG*1}->{FLOAT*1}
Guessed 16, instrumented 24 for {LONG*1}->{BYTE*4}
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 0.418 s <<< FAILURE! - in org.github.jamm.GuessTest
[ERROR] testProblemClasses(org.github.jamm.GuessTest) Time elapsed: 0.385 s <<< FAILURE!
java.lang.AssertionError: Not all guesses matched the instrumented values. See output for details. expected:<0> but was:<2>
at org.github.jamm.GuessTest.testProblemClasses(GuessTest.java:85)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] GuessTest.testProblemClasses:85 Not all guesses matched the instrumented values. See output for details. expected:<0> but was:<2>
[ERROR] MemoryMeterTest.testByteBuffer:478 Shallow empty ByteBuffer expected:<48> but was:<56>
[ERROR] Errors:
[ERROR] MemoryMeterTest.testPrimitives:443 » InaccessibleObject Unable to make field p...
[ERROR] MemoryMeterTest.testUnmeteredAnnotationOnFields:614 » InaccessibleObject Unabl...
[INFO]
[ERROR] Tests run: 24, Failures: 2, Errors: 2, Skipped: 8
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
More information about the pkg-java-maintainers
mailing list