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

Abandoning JDK8 #61

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Abandoning JDK8 #61

wants to merge 12 commits into from

Conversation

dmatej
Copy link
Contributor

@dmatej dmatej commented Aug 21, 2024

Aggregated PR of those previous - should be rebased after their merge.
Tested with GlassFish 8 tests locally on JDK21 and 23.
Partially resolves #43 , however there are still some usages of methods which still do exist in 23. We can probably continue in next PRs but here I need something usable for GlassFish.

  • Abandons dead implementations
  • Uses MethodHandles instead of Unsafe - previous version was not supported on JDK23 and another method was removed.
  • Removes dead code which is not usable with modern JDK versions.

- We already use release 11
- Build failed when I tried to use toolchain for 1.8
- Removed code using Unsafe which is not supported on JDK23 any more

Signed-off-by: David Matějček <[email protected]>
- However we still build for JDK11.
- It would be good to run tests also for other versions

Signed-off-by: David Matějček <[email protected]>
- where possible calls were replaced by another method
- "standard" code moved from Bridge to BridgeBase
- ByteCodeGenerator would need an anchor class, is not used anywhere -> deleted

Signed-off-by: David Matějček <[email protected]>
- ORB was removed from JDK11

Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
- By default, Felix changes - to a . (dot)
- Fix for snapshot: Version included snapshot, that breaks usages
- sun packages in pfl-basic are not optional, sorry, you use Unsafe.
- I don't see the reason to run Felix install+deploy in pfl-basic

Signed-off-by: David Matějček <[email protected]>
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.

sun.misc.Unsafe define class usage
1 participant