GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Java 15 hidden classes

未关闭
#1,694 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
p2 question
主要语言
Java
星标
163
派生
80
PR 合并指标
30 天内没有已合并 PR

描述

"JEP 371 introduces hidden classes in Java 15. Hidden classes have the following implications to existing code:

`Class::getName` traditionally returns a binary name, but for a hidden class it returns a string that contains an ASCII forward slash (/) and is therefore not a binary name. Programs that assume the returned string is a binary name might need to be updated to handle hidden classes. That said, the longstanding practice of Unsafe::defineAnonymousClass was to define classes whose names were not binary names, so some programs may already handle such names successfully."

Do we need to do anything to handle this?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。