-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ListAppender: Synchronize on list while iterating #3926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.x
Are you sure you want to change the base?
Conversation
dbd169f
to
f3c80e3
Compare
@bjmi, thanks so much for the contribution. |
* Returned snapshots no longer require an unmodifiable view
f3c80e3
to
e20198f
Compare
Thank you for your reply. Before LOG4J2-2527 the internal Lists events, data and messages were made public accessible via an unmodifiable view. I thought the copy constructors of the Collections API use the iterator of the list to be copied. And
But it turns out |
@bjmi, I am really reluctant to "Can you fix this aspect of X for my particular use case, please?" requests, in particular, for
@bjmi, would you be interested in revamping this tool? What I have in mind is:
|
@vy |
Checklist
Before we can review and merge your changes, please go through the checklist below. If you're still working on some items, feel free to submit your pull request as a draft—our CI will help guide you through the remaining steps.
✅ Required checks
License: I confirm that my changes are submitted under the Apache License, Version 2.0.
Commit signatures: All commits are signed and verifiable. (See GitHub Docs on Commit Signature Verification).
Code formatting: The code is formatted according to the project’s style guide.
How to check and fix formatting
./mvnw spotless:check
./mvnw spotless:apply
See the build instructions for details.
Build & Test: I verified that the project builds and all unit tests pass.
How to build the project
Run:
./mvnw verify
See the build instructions for details.
🧪 Tests (select one)
📝 Changelog (select one)
src/changelog/.2.x.x
. (See Changelog Entry File Guide).