Details
-
Feature
-
Status: Approved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Current Situation
- Controller and Agent can be operated with Java LTS releaes 17 and 21.
Desired Behavior
- With Java 25 becoming available mid of Sep 2025, the Controller and Agent should be operational from this version.
Delimitation
- Controller and Agent use Scala 3.7.3. When used with Java 25 this raises a warning like this:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$ (file:/opt/sos-berlin.com/js7/controller/lib/3rd-party/org.scala-lang.scala3-library_3-3.7.3.jar) WARNING: Please consider reporting this to the maintainers of class scala.runtime.LazyVals$ WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
- Later Scala versions should not raise the warning. For the time being, the following switch is used in the the Controller's and Agent's start script:
--sun-misc-unsafe-memory-access=allow
Attachments
Issue Links
- is related to
-
JS-2223 Add Java 25 compatibility switch to Controller and Agent Start Script
-
- Approved
-
- links to