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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容