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

Changing range of supported JDKs from 8-17 to 11-23 #61

Draft
wants to merge 11 commits into
base: master
Choose a base branch
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.
  • Exported packages for 5.0.1-SNAPSHOT have version 5.0.1, not 5.0.1.SNAPSHOT as before (was not possible to test snapshots with GlassFish)
  • Should be merged after

@dmatej dmatej added this to the 5.0.1 milestone Feb 3, 2025
@dmatej dmatej changed the title Abandoning JDK8 Abandoning range of supported JDKs 8-17 to 11-23 Feb 3, 2025
@dmatej dmatej changed the title Abandoning range of supported JDKs 8-17 to 11-23 Changing range of supported JDKs 8-17 to 11-23 Feb 3, 2025
@dmatej dmatej changed the title Changing range of supported JDKs 8-17 to 11-23 Changing range of supported JDKs from 8-17 to 11-23 Feb 3, 2025
@dmatej dmatej self-assigned this Feb 3, 2025
dmatej added 11 commits February 5, 2025 00:36
Signed-off-by: David Matějček <[email protected]>

# Conflicts:
#	pfl-basic/pom.xml
#	pfl-dynamic/pom.xml
#	pfl-dynamic/src/test/java/org/glassfish/pfl/dynamic/codegen/lib/EJBObjectBase.java
#	pfl-test/pom.xml
#	pfl-tf/pom.xml
#	pom.xml
- We already use release 11
- Removed code using Unsafe which is not supported on JDK23 any more

Signed-off-by: David Matějček <[email protected]>

# Conflicts:
#	pom.xml
- 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]>
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]>
- Result was compared with the result built form master
- Documented some nonstandard exports (impl)
- Tests in pfl-test were moved to different package to avoid conflict with
  the module in src/main/java

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