You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Java 24 deprecated many methods in sun.misc.Unsafe.
In Paparazzi 1.3.5 I get the following warnings:
I believe the latest Guava versions fix this
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/home/eli/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/32.0.0-jre/25d6662e20fc04c7b38f8ca3ab5d2f4a19272f80/guava-32.0.0-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/home/eli/.gradle/caches/8.14/transforms/cb51c9f9d8489ebe3b006bae72319866/transformed/guava-33.3.1-android.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
In Paparazzi 2.0.0-alpha01 I get the following warnings:
For the layoutlib issue I specify --enable-native-access=ALL-UNNAMED in my gradle.properties for both org.gradle.jvmargs and kotlin.daemon.jvm.options; maybe Paparazzi needs to configure the test task to use it as well?
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction (file:/home/eli/.gradle/caches/8.14/transforms/80f1719e28957c8fbfa3503f6a13649f/transformed/byte-buddy-1.17.5.jar)
WARNING: Please consider reporting this to the maintainers of class net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$CreationAction
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.android.layoutlib.bridge.Bridge in an unnamed module (file:/home/eli/.gradle/caches/8.14/transforms/7ddbbeceffb506f2342ae2f7da76cf06/transformed/layoutlib-15.1.4.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/home/eli/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/32.0.0-jre/25d6662e20fc04c7b38f8ca3ab5d2f4a19272f80/guava-32.0.0-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
The text was updated successfully, but these errors were encountered:
Description
Java 24 deprecated many methods in
sun.misc.Unsafe
.In Paparazzi 1.3.5 I get the following warnings:
In Paparazzi 2.0.0-alpha01 I get the following warnings:
--enable-native-access=ALL-UNNAMED
in mygradle.properties
for bothorg.gradle.jvmargs
andkotlin.daemon.jvm.options
; maybe Paparazzi needs to configure the test task to use it as well?The text was updated successfully, but these errors were encountered: