davsclaus opened a new pull request, #25076: URL: https://github.com/apache/camel/pull/25076
_Claude Code on behalf of davsclaus_ ## Summary - Fix `EndpointDslMojo` to use `Comparator.comparing(File::getName)` instead of `File.compareTo()` when sorting endpoint DSL factory files - `File.compareTo()` delegates to the OS filesystem comparator: case-insensitive on Windows (NTFS) but case-sensitive on Linux/macOS - This caused contributors building on Windows to generate `EndpointBuilders.java` and `EndpointBuilderFactory.java` with a different sort order, failing CI's uncommitted-changes check ## Root cause `File.compareTo()` on Windows treats `CMEndpointBuilderFactory` and `CaffeineEndpointBuilderFactory` as `cm...` vs `caffeine...` (case-insensitive), producing a different order than Linux where `CM` (uppercase) sorts before `Ca` (uppercase then lowercase) by Unicode code point. ## Fix Sort by `File.getName()` which uses `String.compareTo()` — ordinal Unicode comparison that produces identical output on every platform and locale. ## Test plan - [x] Verified the plugin compiles - [ ] CI should pass with no uncommitted generated file changes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.6 <[email protected]> -- 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]
