gnodet opened a new pull request, #303: URL: https://github.com/apache/cxf-xjc-utils/pull/303
## Summary - Fix race condition in `AbstractXSDToJavaMojo.runForked()` where the same `StreamConsumer` instance was shared between stdout and stderr `StreamPumper` threads - The non-thread-safe mutable state (`StringBuilder`, `File`, `int` fields) in the shared consumer caused intermittent `ArrayIndexOutOfBoundsException` inside `StringBuilder`'s `System.arraycopy` - Use separate `StreamConsumer` instances for stdout and stderr by extracting a `createStreamConsumer()` factory method ## Test plan - [x] `mvn -B clean install` passes with all tests green - [ ] Verify no more intermittent `Failure processing stderr.: arraycopy` errors in CI 🤖 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]
