smongiar opened a new pull request, #22828:
URL: https://github.com/apache/camel/pull/22828

   ## Summary
   
   Backport of https://github.com/apache/camel/pull/22811 to `camel-4.18.x`.
   
   - Fix `MultiCompile.java` to handle non-`file://` URLs (e.g. `jar:nested:`) 
in the compiler classpath
   - When running inside a Spring Boot fat-jar, `URLClassLoader.getURLs()` 
returns `jar:nested:` protocol URLs for JARs inside `BOOT-INF/lib/`
   - The existing code silently drops these URLs, causing 
`javax.tools.JavaCompiler` to fail with missing classes
   - Fix extracts non-file URLs to temporary JAR files and adds them to the 
compiler classpath, with cleanup in a finally block
   
   ## Test plan
   
   - [ ] Run existing camel-joor unit tests
   - [ ] Test with camel-launcher (fat-jar) running SQL example with 
`spring.datasource.url` property
   
   🤖 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]

Reply via email to