Croway opened a new pull request, #22930: URL: https://github.com/apache/camel/pull/22930
## Summary - Replace `URLClassLoader.getResourceAsStream()` in `PackageScanJarResource.getInputStream()` with direct `jar:` URL resolution via `URLConnection`, fixing unreliable stream opening for resources in JAR subdirectories - Remove the `URLClassLoader` field (`uc`) which was a resource leak (never closed) and whose behavior with leading-`/` paths is platform-dependent - Add a test that creates a temporary JAR with resources in nested subdirectories, scans with `classpath:routes/**/*.txt`, and verifies all resources are found with readable content ## Test plan - [x] `DefaultPackageScanResourceResolverTest.testJarResourcesScanWithSubdirectories` passes (new test) - [x] `DefaultPackageScanResourceResolverTest.testFileResourcesScan` still passes (existing test) - [ ] `CamelXmlWildcardRoutesIT` in camel-spring-boot should pass once this camel-core version is picked up (cross-repo verification) _Claude Code on behalf of Federico Mariani_ -- 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]
