We have an application that uses various Scala dependencies, including sttp. When we run with Java 25 we get the following warning:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$
I believe this is causes by the dependencies being compiled with a version of Scala before 3.8 and not using the flag -Yfuture-lazy-vals.
Sttp seems to use Scala 3.3.8 (so not 3.8+) and does not use -Yfuture-lazy-vals, and also uses lazy val, so using this dependency will also cause the above warnings.
Can there be a version of Sttp released using Scala 3.8+ and/or using -Yfuture-lazy-vals, so that this warning can be fixed?
We have an application that uses various Scala dependencies, including sttp. When we run with Java 25 we get the following warning:
I believe this is causes by the dependencies being compiled with a version of Scala before 3.8 and not using the flag
-Yfuture-lazy-vals.Sttp seems to use Scala 3.3.8 (so not 3.8+) and does not use
-Yfuture-lazy-vals, and also useslazy val, so using this dependency will also cause the above warnings.Can there be a version of Sttp released using Scala 3.8+ and/or using
-Yfuture-lazy-vals, so that this warning can be fixed?