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

Migrate to Java 17 #1756

Open
robfrank opened this issue Oct 14, 2024 · 3 comments
Open

Migrate to Java 17 #1756

robfrank opened this issue Oct 14, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@robfrank
Copy link
Collaborator

robfrank commented Oct 14, 2024

Migrate to Java 17

  • first step: just migrate compile and runtime without touching/adapting the code
@robfrank robfrank added the enhancement New feature or request label Oct 14, 2024
@robfrank robfrank added this to the 24.11.1 milestone Oct 14, 2024
@robfrank robfrank self-assigned this Oct 14, 2024
@robfrank robfrank changed the title Migrate to Java21 Migrate to Java 17 Oct 14, 2024
@gramian
Copy link
Collaborator

gramian commented Oct 15, 2024

For finalization:

  • README: Update text and remove button
  • Docs: Update Section 11.9 (@gramian)

robfrank added a commit that referenced this issue Oct 19, 2024
robfrank added a commit that referenced this issue Oct 19, 2024
mergify bot added a commit that referenced this issue Oct 20, 2024
…java-17

#1756 migrate build and runtime in docker file to java 17
@gramian
Copy link
Collaborator

gramian commented Oct 28, 2024

If this is relevant: Following I gathered the deprecation warnings in the compiler output:

[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[22,16] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/Profiler.java:[212,27] sun.management.HotspotRuntimeMBean is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/Profiler.java:[212,79] sun.management.ManagementFactoryHelper is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[38,24] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[179,18] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[181,14] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[186,71] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[187,21] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[187,33] sun.misc.Unsafe is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/engine/src/main/java/com/arcadedb/serializer/UnsignedBytesComparator.java:[186,14] java.security.AccessController in java.security has been deprecated and marked for removal

[WARNING] arcadedb/server/src/main/java/com/arcadedb/server/monitor/ServerMonitor.java:[107,25] sun.management.HotspotRuntimeMBean is internal proprietary API and may be removed in a future release
[WARNING] arcadedb/server/src/main/java/com/arcadedb/server/monitor/ServerMonitor.java:[107,70] sun.management.ManagementFactoryHelper is internal proprietary API and may be removed in a future release

Maybe Java17 has "easy" solutions?

@lvca
Copy link
Contributor

lvca commented Oct 28, 2024

@gramian good point! There are new API now to do the same things without using Unsafe: https://openjdk.org/jeps/471, @robfrank we should investigate. ArcadeDB already check if Unsafe is available, then use it because faster than pure Java comparator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants