[lworld] RFR: 8326879: [lworld] IncompatibleClassChangeError on `value record` extending java.lang.Record
Mandy Chung
mchung at openjdk.org
Wed Feb 28 19:05:54 UTC 2024
On Wed, 28 Feb 2024 18:37:15 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> "value records" implicitly extend the abstract class java.lang.Record.
> Class loading throws IncompatibleClassChangeError if java.lang.Record is not marked as "abstract value class".
>
> The tests affected are:
>
> valhalla/valuetypes/ObjectMethods.java: test Object methods on value classes
> valhalla/valuetypes/ObjectMethodsViaCondy.java: Test ObjectMethods::bootstrap call via condy
>
> The solution is to add java.lang.Record to the set of classes that are modified for --enable-preview to be `value` classes.
Marked as reviewed by mchung (Committer).
-------------
PR Review: https://git.openjdk.org/valhalla/pull/1027#pullrequestreview-1907061247
More information about the valhalla-dev
mailing list