mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8309568: javac crashes attempting to -Xprint on a class file of an unnamed class
Reviewed-by: darcy, jlahoda
This commit is contained in:
@@ -2731,7 +2731,10 @@ public class ClassReader {
|
||||
}
|
||||
readClass(c);
|
||||
if (previewClassFile) {
|
||||
if ((c.flags_field & SYNTHETIC) != 0 && c.isSubClass(syms.objectType.tsym, types)) {
|
||||
if ((c.flags_field & SYNTHETIC) != 0 &&
|
||||
c.owner.kind == PCK &&
|
||||
(c.flags_field & AUXILIARY) == 0 &&
|
||||
(c.flags_field & FINAL) != 0) {
|
||||
c.flags_field |= UNNAMED_CLASS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user