Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing --add-exports for the tests #93

Open
pgrt opened this issue Apr 29, 2024 · 0 comments
Open

Missing --add-exports for the tests #93

pgrt opened this issue Apr 29, 2024 · 0 comments

Comments

@pgrt
Copy link

pgrt commented Apr 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant