java 16 关于被禁的内部接口替代方案

看了N多公众号文章,全部都只是抄来抄去的,里面关于被禁接口的代替链接永远都缺失,上官网扒了一份,大家凑合着看看吧

鉴于可能对链接会拦截,我尽量搬过来吧……

被禁用的 推荐的 备注
core-libs
protected java.lang.ClassLoader::defineClass method java.lang.invoke.MethodHandles.Lookup::defineClass @since 9 Frameworks may use java.lang.invoke.MethodHandles::privateLookupIn to obtain a Lookup object with the permission to access the private members a target class in a different module if the framework is granted with deep reflection access to the target class.
sun.io java.nio.charsets @since 1.4
sun.misc.BASE64Decoder,
sun.misc.BASE64Encoder,
com.sun.org.apache.xml.internal.security.utils.Base64
java.util.Base64 @since 8 See http://openjdk.java.net/jeps/135

你可能感兴趣的:(java 16 关于被禁的内部接口替代方案)