atiaomar1978-hub commented on PR #25265: URL: https://github.com/apache/camel/pull/25265#issuecomment-5160154093
_AI-generated comment on behalf of [atiaomar1978-hub](https://github.com/atiaomar1978-hub)_ ### CI fix for [run 30758229647](https://github.com/apache/camel/actions/runs/30758229647/job/91538215704) (`cbea25eb79a`) **Root cause:** `ScopedValueContextValueOrElseTest` used reflection to load `ContextValueFactory$ScopedValueContextValue`, but that inner class is packaged in the MRJ layer (`META-INF/versions/25/`) and is not available on Surefire's exploded test classpath on JDK 25 → `ClassNotFoundException` in `camel-util`. **Changes:** - Removed `ScopedValueContextValueOrElseTest` (MRJ inner classes cannot be unit-tested reliably via reflection on the Surefire classpath) - `ContextValueFactory` (java25): evaluate ScopedValue vs ThreadLocal **lazily** from `ThreadType.current()` instead of caching at class-load time - Added `Multi-Release: true` manifest for the java-25 profile (`META-INF/MANIFEST.MF` + jar plugin) - `KameletVirtualThreadsRouteCreationTest` remains the integration regression guard for the `orElse(null)` NPE (CAMEL-24320) **Local tests:** - JDK 21: `ContextValueTest`, `CreateContextValueTest`, `KameletVirtualThreadsRouteCreationTest` (JDK 25-only tests skipped) — green - JDK 26: `ContextValueTest`, `CreateContextValueTest` — green Please re-run CI on the latest commit. -- 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]
