Skip to content

Missing --add-exports for the tests #93

Description

@pgrt

Dear developers,

I am a Debian developer, currently packaging ed25519-java in Debian.

During my packaging process, I stumbled upon errors raised by the surefire plugin because (e.g.)
java.lang.IllegalAccessError: class net.i2p.crypto.eddsa.EdDSAEngineTest (in unnamed module @0x5d5baec3) cannot access class sun.security.util.DerValue (in module java.base) because module java.base does not export sun.security.util to unnamed module @0x5d5baec3
at net.i2p.crypto.eddsa.EdDSAEngineTest.testVerifyX509PublicKeyInfo(EdDSAEngineTest.java:227)

I could handle such errors thanks to the following patch. I hope it can be useful to you one day (obviously you did not encounter the issue up to now). I think it is linked to using OpenJDK-17 as the JDK.

Best,

--
Pierre

add-opens_in_test.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions