Skip to content
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

Allow for easier WeakConcurrentMap subclassing #14

Closed

Conversation

SylvainJuge
Copy link

The isPersistentClassLoader method is currently private, thus we can't reuse it when creating subclasses of WeakConcurrentMap.

This is definitely a very minor annoyance and was found when trying to provide a custom map through constructor, which is convenient when testing to be able to check when items are actually removed from the concurrent map.
Context : https://github.com/elastic/apm-agent-java/blob/012af603ce314abff0e04183cfaf61b537cf5495/apm-agent-plugin-sdk/src/main/java/co/elastic/apm/agent/sdk/weakmap/NullSafeWeakConcurrentMap.java#L47

@SylvainJuge
Copy link
Author

Might not be required anymore once elastic/apm-agent-java#2137 is merged, thus will close it once it's merged.

@SylvainJuge
Copy link
Author

Not required anymore on our end, thus closing this PR for now.

@SylvainJuge SylvainJuge deleted the easier-weakmap-subclass branch August 25, 2022 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant