Even since I moved my host machine to `java 25`, I...
# getting-started
u
Even since I moved my host machine to
java 25
, I'm getting these warnings during compilation
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
Copy code
> Task :analytics:contract:checkKotlinGradlePluginConfigurationErrors SKIPPED
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.intellij.util.containers.Unsafe (file:/Users/foo/.gradle/caches/modules-2/files-2.1/app.cash.sqldelight/compiler-env/2.2.1/c3bf77c290174a213db2cd481c94ca4ff9341ef8/compiler-env-2.2.1.jar)
WARNING: Please consider reporting this to the maintainers of class com.intellij.util.containers.Unsafe
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
A terminally deprecated method in sun.misc.Unsafe has been called

sun.misc.Unsafe::objectFieldOffset has been called by com.intellij.util.containers.Unsafe (file:/Users/foo/.gradle/caches/modules-2/files-2.1/app.cash.sqldelight/compiler-env/2.2.1/c3bf77c290174a213db2cd481c94ca4ff9341ef8/compiler-env-2.2.1.jar)

Please consider reporting this to the maintainers of class com.intellij.util.containers.Unsafe

sun.misc.Unsafe::objectFieldOffset will be removed in a future release
Anyone have a clue what is it about?
j
Yeah, looks like a terminally deprecated method was called. You should make sure your tool are up to date, and report it
u
which tool? sqldelight? (The quote of "Please consider reporting this to the maintainers of class com.intellij.util.containers.Unsafe" confuses me)
j
When in doubt, all of the above Gradle, plugins, IDE etc
y
Looks like sqldelight, according to the error message. This is expected, since transitioning away from
Unsafe
is nontrivial. It seems as though it's using an IntelliJ depedency, which itself uses
Unsafe
a
When starting a brand new Kotlin JVM project with Gradle 9 and JVM25 you get this. So no dependencies
j
When starting a new Kotlin JVM project, you have dependencies on the Kotlin & Java compiler And stdlib And Gradle