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

WELD-2613 Remove Unsafe usage from class defining logic. #1978

Merged
merged 1 commit into from
Mar 28, 2020

Conversation

manovotn
Copy link
Contributor

I am not really happy with this as it means we will be seeing IllegalAccess warning again on JDK 11.

However, Unsafe is a mess in JDK 12+ and not really working, so we cannot rely on that for future solutions anyway. Linked issue has also reported a failure with it on 11 even though we don't know the exact setup (but it has something to do with modular setup which is likely).

We now have EE integrators re-routed to the new SPI for several releases, so this problem concerns mainly SE (and possibly servlet?). I don't think there is a solution we could take that would work in both, JDK 8 and JDK 11+ and for declaring classes in JDK 11+ there is likely still the issue of not being able to declare class with different ProtectionDomain via new API. I am not sure we need that in SE though.

@manovotn
Copy link
Contributor Author

@mkouba FYI

@manovotn manovotn merged commit 0ffc1a6 into weld:master Mar 28, 2020
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