Java 8 Compatibility #223
-
Are you looking to keep JSign compatible with Java 8 in the 6.1 release? I've noticed that there's something breaking in there which works fine with Java 21, specifically when using microsoft trusted signing. The pom still has source/target = 8 though which makes me think that this is an oversight. If you can confirm that you want to keep Java 8 support in this version, I'll raise an issue, investigate a bit further and submit a PR to fix it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes I intend to preserve the Java 8 compatibility, ideally until Java 8 is EOL everywhere. What issue did you notice? |
Beta Was this translation helpful? Give feedback.
Ah yes that's a common issue, it could be avoided by building with the
-release 8
flag but that doesn't work for Jsign. With this option the compiler no longer recognizes the javax.smartcardio package used for the PIV and OpenPGP cards (JDK-8212638), nor the internal packages such as sun.security.pkcs11.wrapper which is used for configuring the PKCS#11 libraries.I don't mind adding some casts around the ByteBuffer calls to avoid this issue.