diff options
author | 2023-04-22 09:24:57 +0100 | |
---|---|---|
committer | 2023-04-25 15:02:06 +0000 | |
commit | c8507c86869c358fb0880ad49e00ca44763bfb70 (patch) | |
tree | 31cb51a337e789ade747536f7e2e111a42d1618e /compiler/optimizing/common_arm.h | |
parent | a4e1246486eda9689e26eb82d69890a9402c26ad (diff) |
Throw ClassFormatError for invalid @Record annotation
ART has 2 ways to deal with invalid record class. For example,
non-final j.l.Record subclass is not treated as a record class,
i.e. Class.isRecord() returns false.
The second way is to throw ClassFormatError if the dex format
doesn't follow the spec. This CL implements this part.
Record class is a new feature in Android U.
Bug: 272698028
Test: CtsLibcoreOjTestCases:test.java.io.Serializable.records
Test: CtsLibcoreTestCases:crossvmtest
Test: CtsLibcoreTestCases:libcore.java.lang.ClassTest
Test: CtsLibcoreTestCases:libcore.java.lang.RecordTest
Test: CtsLibcoreOjTestCases:test.java.lang.reflect.records
Change-Id: I3eacc9b4fcef47596704e7f1c386368041db0bf0
Diffstat (limited to 'compiler/optimizing/common_arm.h')
0 files changed, 0 insertions, 0 deletions