summaryrefslogtreecommitdiff
path: root/compiler/optimizing/instruction_builder.cc
diff options
context:
space:
mode:
author Victor Chang <vichang@google.com> 2023-04-22 09:24:57 +0100
committer Victor Chang <vichang@google.com> 2023-04-25 15:02:06 +0000
commitc8507c86869c358fb0880ad49e00ca44763bfb70 (patch)
tree31cb51a337e789ade747536f7e2e111a42d1618e /compiler/optimizing/instruction_builder.cc
parenta4e1246486eda9689e26eb82d69890a9402c26ad (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/instruction_builder.cc')
0 files changed, 0 insertions, 0 deletions