-
Bug
-
Resolution: Fixed
-
P3
-
16
-
b28
The removal of non-specified JVM checks on classes with Record attributes JDK-8255342, has resulted in more types of loadable classes that may contain a Record attribute. Now that these checks are not performed by the JVM anymore, Class::isRecord (and by extension Class::getRecordAttributes) may return values for classes that are not wellformed record classes (as per the JLS), .e.g. for non-final classes or for abstract classes.
Core Reflection, Class::isRecord, already asserts checks that the JVM does not, e.g. that the direct superclass is java.lang.Record.
Core Reflection, Class::isRecord, already asserts checks that the JVM does not, e.g. that the direct superclass is java.lang.Record.
- csr for
-
JDK-8257520 Class::isRecord should check that the current class is final and not abstract
- Closed
- relates to
-
JDK-8257596 Clarify trusted final fields for record classes
- Resolved
-
JDK-8255342 Remove non-specified JVM checks on Classes with Record attributes
- Resolved