Bug#1011562: openhft-chronicle-threads: FTBFS with OpenJDK 17 due to an illegal reflective access during the tests

Emmanuel Bourg ebourg at apache.org
Tue May 24 23:16:26 BST 2022


Source: openhft-chronicle-threads
Version: 1.1.6-2
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17


openhft-chronicle-threads fails to build with OpenJDK 17, the tests make illegal
reflective accesses into java.base/java.lang:


  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running net.openhft.chronicle.threads.EventGroupTest
  [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.048 s <<< FAILURE! - in net.openhft.chronicle.threads.EventGroupTest
  [ERROR] testSimpleEventGroupTest(net.openhft.chronicle.threads.EventGroupTest)  Time elapsed: 0.017 s  <<< ERROR!
  java.lang.ExceptionInInitializerError
          at net.openhft.chronicle.threads.EventGroupTest.testSimpleEventGroupTest(EventGroupTest.java:21)
  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private java.lang.ThreadGroup java.lang.Thread.group accessible: module java.base does not "opens java.lang" to unnamed module @
  4cfaf581
          at net.openhft.chronicle.threads.EventGroupTest.testSimpleEventGroupTest(EventGroupTest.java:21)
  
  [INFO] Running net.openhft.chronicle.threads.LightPauserTest
  Average time to unpark was 2 ns
  Average time to unpark was 3 ns
  Average time to unpark was 2 ns
  [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 s - in net.openhft.chronicle.threads.LightPauserTest
  [INFO]
  [INFO] Results:
  [INFO]
  [ERROR] Errors:
  [ERROR]   EventGroupTest.testSimpleEventGroupTest:21 » ExceptionInInitializer
  [INFO]
  [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------


More information about the pkg-java-maintainers mailing list