GoogleCloudPlatform / GoogleCloudPlatform/cloud-opensource-java

Java 15 hidden classes

Offen
#1,694 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
p2 question
Vorherrschende Sprache
Java
Sterne
163
Forks
80
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

"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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.