Uploaded image for project: 'JS - JS7 JobScheduler Engine'
  1. JS - JS7 JobScheduler Engine
  2. JS-2218

Controller and Agent support use of Java 25

    XMLWordPrintable

Details

    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

          Activity

            People

              jz Joacim Zschimmer
              ap Andreas Püschel
              Andreas Püschel Andreas Püschel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: