Minor OpenJDK 11 update changed ObjectIdentifer constructor to private
Denis Bredelet
denisbredelet at boomi.com
Wed Oct 2 17:12:51 UTC 2024
Hello,
With the OpenJDK 11.0.21 release the constructor visibility changed.
That breaks code that relied on
"sun.security.util.ObjectIdentifier(String oid)" such as Apache Kerby
directory's GssTokenV1 class.
The error I receive is:
class org.apache.kerby.kerberos.kerb.gss.impl.GssTokenV1 tried to
access private method 'void
sun.security.util.ObjectIdentifier.<init>(java.lang.String)'
The change that affected the visibility of the constructor is:
https://bugs.openjdk.org/browse/JDK-8310005
Shouldn't the signature of the class remain stable between minor
versions? 11.0.20 -> 11.0.21
Thanks!
Denis Bredelet
Advanced Support Engineering
More information about the core-libs-dev
mailing list