Source: jnr-enxio
Version: 0.32.3-2
Severity: important
Tags: ftbfs sid bookworm
User: [email protected]
Usertags: default-java17
jnr-enxio fails to build with OpenJDK 17, the tests make an illegal
reflective access into java.base/java.io:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running jnr.enxio.channels.NativeTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.057
s <<< FAILURE! - in jnr.enxio.channels.NativeTest
[ERROR] closeThrowsOnNativeError(jnr.enxio.channels.NativeTest) Time
elapsed: 0.007 s <<< ERROR!
java.lang.reflect.InaccessibleObjectException: Unable to make field private
int java.io.FileDescriptor.fd accessible: module java.base does not "opens
java.io" to unnamed module @4cfaf581
at
jnr.enxio.channels.NativeTest.closeThrowsOnNativeError(NativeTest.java:20)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] NativeTest.closeThrowsOnNativeError:20 ยป InaccessibleObject Unable
to make fie...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
This can be fixed by adding this parameter to debian/maven.properties:
argLine=--add-opens java.base/java.io=ALL-UNNAMED