[lworld] Integrated: 8326879: [lworld] IncompatibleClassChangeError on `value record` extending java.lang.Record
Roger Riggs
rriggs at openjdk.org
Wed Feb 28 19:52:00 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.
This pull request has now been integrated.
Changeset: b04f3a94
Author: Roger Riggs <rriggs at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/b04f3a94d7b87d2958baaf7298313fb0c198249b
Stats: 17 lines in 6 files changed: 7 ins; 0 del; 10 mod
8326879: [lworld] IncompatibleClassChangeError on `value record` extending java.lang.Record
Reviewed-by: mchung
-------------
PR: https://git.openjdk.org/valhalla/pull/1027
More information about the valhalla-dev
mailing list