Skip to content

(Better) support for Java records in Native Types #1060

Description

@dteleguin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions