Title: Support for Java interfaces in Native Types · Issue #1061 · cel-expr/cel-java · GitHub
Open Graph Title: Support for Java interfaces in Native Types · Issue #1061 · cel-expr/cel-java
X Title: Support for Java interfaces in Native Types · Issue #1061 · cel-expr/cel-java
Description: In complex web-facing software, interfaces are very commonly used to model different kinds of context objects (examples from Keycloak: OAuth2GrantType.Context, TokenExchangeContext). These objects would perfectly complement any CEL polic...
Open Graph Description: In complex web-facing software, interfaces are very commonly used to model different kinds of context objects (examples from Keycloak: OAuth2GrantType.Context, TokenExchangeContext). These objects ...
X Description: In complex web-facing software, interfaces are very commonly used to model different kinds of context objects (examples from Keycloak: OAuth2GrantType.Context, TokenExchangeContext). These objects ...
Opengraph URL: https://github.com/cel-expr/cel-java/issues/1061
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for Java interfaces in Native Types","articleBody":"In complex web-facing software, interfaces are very commonly used to model different kinds of context objects (examples from Keycloak: [OAuth2GrantType.Context](https://github.com/keycloak/keycloak/blob/main/server-spi-private/src/main/java/org/keycloak/protocol/oidc/grants/OAuth2GrantType.java#L107), [TokenExchangeContext](https://github.com/keycloak/keycloak/blob/main/server-spi-private/src/main/java/org/keycloak/protocol/oidc/TokenExchangeContext.java)). These objects would perfectly complement any CEL policy being part of request processing. Unfortunately, adding such an object as a variable won't work with Native Extensions, because only List and Map subinterfaces are currently [supported](https://github.com/google/cel-java/blob/main/extensions/src/main/java/dev/cel/extensions/CelNativeTypesExtensions.java#L288).\n\nWould be really nice for CEL to support Java interfaces in a native manner.","author":{"url":"https://github.com/dteleguin","@type":"Person","name":"dteleguin"},"datePublished":"2026-05-18T09:31:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1061/cel-java/issues/1061"}
| 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:d143c494-2051-fef5-1daf-648c61f5cbe1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD5E:C4224:163EE4:1DC0AA:6A4D94BA |
| html-safe-nonce | 4ef0fc1cc240c1823052bdaa0b9a5e1c0723fb731cbb6d7f6a774da0d2ab779d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDVFOkM0MjI0OjE2M0VFNDoxREMwQUE6NkE0RDk0QkEiLCJ2aXNpdG9yX2lkIjoiNzY3OTU2MjI5NjI0NzI5MzExNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9ffc1a49b0405dde24627e7420e48ad78bf6345b73083b6d53b6978be3cf539d |
| hovercard-subject-tag | issue:4467943905 |
| 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/1061/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e5429c0cb0d2f5a0d80365d187ae46bd8c1bbd544e145758e07bfc9a06c20bd/cel-expr/cel-java/issues/1061 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e5429c0cb0d2f5a0d80365d187ae46bd8c1bbd544e145758e07bfc9a06c20bd/cel-expr/cel-java/issues/1061 |
| og:image:alt | In complex web-facing software, interfaces are very commonly used to model different kinds of context objects (examples from Keycloak: OAuth2GrantType.Context, TokenExchangeContext). These objects ... |
| 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 | 74e2a9c78f1e38588de4f25885878349d721eedf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width