E5DD Refactor class-loader hack for property cache by ptziegler · Pull Request #1030 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

Refactor class-loader hack for property cache#1030

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:class-loader-local-map
Apr 19, 2025
Merged

Refactor class-loader hack for property cache#1030
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:class-loader-local-map

Conversation

@ptziegler
Copy link
Contributor

The methods used to hack a custom map into the class-loader won't work anymore, unless the java.base/java.lang module is explicitly opened. The ClassLoaderLocalMap has instead been refactored into a normal map, which is bound to the lifecycle of the project class-loader.

Contributes to:
#764

@ptziegler ptziegler added this to the 1.20.0 milestone Apr 15, 2025
@ptziegler ptziegler force-pushed the class-loader-local-map branch 2 times, most recently from 33cd0cd to afd820d Compare April 16, 2025 04:14
The methods used to hack a custom map into the class-loader won't work
anymore, unless the java.base/java.lang module is explicitly opened. The
ClassLoaderLocalMap has instead been refactored into a normal map, which
is bound to the lifecycle of the project class-loader.

Contributes to:
eclipse-windowbuilder#764
@ptziegler ptziegler force-pushed the class-loader-local-map branch from afd820d to 123a651 Compare April 19, 2025 17:22
@ptziegler
Copy link
Contributor Author

I ran the tests locally without any noticeable class-loader leak. So I think this is good as well.

@ptziegler ptziegler merged commit ab214fb into eclipse-windowbuilder:master Apr 19, 2025
6 checks passed
@ptziegler ptziegler deleted the class-loader-local-map branch April 19, 2025 21:35
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

0