Title: (Better) support for Java records in Native Types · Issue #1060 · cel-expr/cel-java · GitHub
Open Graph Title: (Better) support for Java records in Native Types · Issue #1060 · cel-expr/cel-java
X Title: (Better) support for Java records in Native Types · Issue #1060 · cel-expr/cel-java
Description: 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 requ...
Open Graph Description: 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{...
X Description: 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{...
Opengraph URL: https://github.com/cel-expr/cel-java/issues/1060
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(Better) support for Java records in Native Types","articleBody":"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'}`):\n- no-arg constructor is required, which is normally not used with records;\n- 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](https://github.com/keycloak/keycloak/blob/main/core/src/main/java/org/keycloak/representations/JsonWebToken.java) in Keycloak.","author":{"url":"https://github.com/dteleguin","@type":"Person","name":"dteleguin"},"datePublished":"2026-05-18T09:26:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1060/cel-java/issues/1060"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a163cdb5-b171-8889-93f4-4a89bebb1c0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8DE:1491E4:B20A49:B639A3:6A4DB840 |
| html-safe-nonce | fccee93623035e63cef98c586a1ddc71815281ecdf81f9a4fd5ac567be0387d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOERFOjE0OTFFNDpCMjBBNDk6QjYzOUEzOjZBNERCODQwIiwidmlzaXRvcl9pZCI6IjYwOTIwODkxNDc1MjYwNjgyODgiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | f8f5c7991b31a268987287670b750f23dc8c27f150a0228f5d2e7e00a5acccc2 |
| hovercard-subject-tag | issue:4467898253 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cel-expr/cel-java/1060/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf4cdcd6c7fecdf3fc9ce7c1955a2ee47cd77cfb4978bdfd2561df84e1088c4c/cel-expr/cel-java/issues/1060 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf4cdcd6c7fecdf3fc9ce7c1955a2ee47cd77cfb4978bdfd2561df84e1088c4c/cel-expr/cel-java/issues/1060 |
| og:image:alt | 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{... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dteleguin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/cel-expr/cel-java git https://github.com/cel-expr/cel-java.git |
| octolytics-dimension-user_id | 186625994 |
| octolytics-dimension-user_login | cel-expr |
| octolytics-dimension-repository_id | 587078119 |
| octolytics-dimension-repository_nwo | cel-expr/cel-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587078119 |
| octolytics-dimension-repository_network_root_nwo | cel-expr/cel-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width