diff options
| author | 2023-04-22 09:24:57 +0100 | |
|---|---|---|
| committer | 2023-04-25 15:10:46 +0000 | |
| commit | 5094ed6a9daa845805eabaa17609fefc26f6d980 (patch) | |
| tree | 384ab632818949186c244ea3b61f817116fec517 /compiler/optimizing/codegen_test_utils.h | |
| parent | 4cdcab58b438a91c91cd5b09235c703251c6e328 (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
(cherry picked from https://android-review.googlesource.com/q/commit:c8507c86869c358fb0880ad49e00ca44763bfb70)
Merged-In: I3eacc9b4fcef47596704e7f1c386368041db0bf0
Change-Id: I3eacc9b4fcef47596704e7f1c386368041db0bf0
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions