I was experimenting with Native Types (kudos again!) and Java records. Reading records from CEL works just fine, but I have discovered a couple of issues with inline record instantiation (e.g. Foo{bar: 'baz'}):
- no-arg constructor is required, which is normally not used with records;
- records are using prefix-less setters which CEL does not (yet) recognize. Just in case, this convention is not uncommon in the "traditional" (non-record) value classes; see JsonWebToken in Keycloak.
I was experimenting with Native Types (kudos again!) and Java records. Reading records from CEL works just fine, but I have discovered a couple of issues with inline record instantiation (e.g.
Foo{bar: 'baz'}):