8309568: javac crashes attempting to -Xprint on a class file of an unnamed class
Reviewed-by: darcy, jlahoda
This commit is contained in:
parent
8cdd95e8a2
commit
a6726b66db
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user