Skip to content

Tests fail due to non-opened JDK class #46

Description

@headius

Saw this error while trying to update and deploy to central:

[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.278 s <<< FAILURE! - in jnr.enxio.channels.NativeTest
[ERROR] jnr.enxio.channels.NativeTest.setBlocking  Time elapsed: 0.002 s  <<< ERROR!
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.io.FileDescriptor sun.nio.ch.SinkChannelImpl.fd accessible: module java.base does not "opens sun.nio.ch" to unnamed module @71f2a7d5
	at jnr.enxio.channels.NativeTest.setBlocking(NativeTest.java:35)

However the tests are being run needs to add the appropriate opens flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions