java 16 關于被禁的內部接口替代方案

看了N多公眾號文章,全部都只是抄來抄去的,里面關于被禁接口的代替鏈接永遠都缺失,上官網(wǎng)扒了一份,大家湊合著看看吧

鑒于可能簡書對鏈接會攔截,我盡量搬過來吧……

被禁用的 推薦的 備注
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
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容