gnodet opened a new pull request, #12921: URL: https://github.com/apache/maven/pull/12921
## Summary - Fixes Maven 4.0.0-rc-6 hanging on startup with JDK 25 in Linux container environments - The previous fix for #12761 guarded only `writer()` and `getType()` against reentrant calls from the build thread, but JLine 4.4.0's FFM provider initialization (`CLibrary.<clinit>`) reaches back through other terminal methods (`getSize`, `getName`, `encoding`, etc.), causing the same deadlock - Constructs a `DumbTerminal` directly (bypassing `TerminalBuilder`'s grapheme-cluster probing) before the build thread starts, and returns it from `getTerminal()` whenever the build thread would otherwise wait on its own future — covering all delegate methods at once ## Test plan - [x] Existing `FastTerminalReentrancyTest` tests for `writer()` and `getType()` still pass - [x] New test `arbitraryTerminalMethodsFromTheBuilderDoNotDeadlock` verifies `getSize()` from the builder callback does not deadlock - [x] New test `arbitraryTerminalMethodsFromTheConsumerDoNotDeadlock` verifies `getName()` from the consumer callback does not deadlock - [ ] CI passes on all platforms 🤖 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]
