gnodet opened a new pull request, #23331: URL: https://github.com/apache/camel/pull/23331
## Summary - Add `--enable-native-access=ALL-UNNAMED` JBang directive to the CamelJBang launcher to suppress JDK 24+ restricted method warnings (JEP 472). - JLine's FFM and JNI terminal providers call restricted methods like `MemorySegment.reinterpret` and `Linker.downcallHandle`. Without this flag, JDK 24+ prints warnings and JDK 26+ will block these calls with `IllegalCallerException`. - Since JBang runs everything on the classpath (unnamed module), `ALL-UNNAMED` is the correct value. ## References - [JEP 472](https://openjdk.org/jeps/472) - [JLine troubleshooting: JDK 24 restricted method warning](https://jline.org/docs/troubleshooting/#jdk-24-restricted-method-warning) ## Test plan - [ ] Verify CamelJBang launches without restricted method warnings on JDK 24+ - [ ] Verify no behavioral change on JDK 21-23 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
