Closed Bragolgirith closed 2 years ago
The cause is that we need to access the sun.* package. I will keep testing the next LTS java version to ensure it works.
Now the Java 17 LTS is out and illegal access warning became errors. For sun.* they likely will need some --add-exports
(or maybe --add-opens
for reflection) for Maven compiler settings.
In case of JDK 8 compiler args incompatibility, it could require building with at least JDK 11 even when supporting JDK 8. Adding a profile could allow supporting both yet.
Or try the possibility to use own pure java code for the remaining sun.* definitions.
Add the support of Java 17 (LTS) in f65fa24. For details please refer to README.md
When performing any PKCS11 cryptographic operation using
Java 11
, I'm getting similar warnings in the console: (example is for GCM encryption)The operation is nevertheless successful, but from the message it looks like it might eventually stop working for newer versions of Java.
Java version:
openjdk 11.0.10 2021-01-19