Hello, Should I be worried about these red warning...
# kotlin-toolchain
l
Hello, Should I be worried about these red warnings when I perform a build of my project? Is there a fix, or a way to silence them?
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.jetbrains.skiko.LibraryLoader in an unnamed module (file:/Users/username/Library/Caches/JetBrains/Kotlin/.m2.cache/org/jetbrains/skiko/skiko-awt/0.150.1/skiko-awt-0.150.1.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
j
You should not be worried. Skiko does need access to native libraries, so it is expected. On Java 24+, accessing native libs now issues a warning unless we explicitly allow the JVM to do so via special flags. We're trying to figure out the best way to do this without bothering users, but also without hiding other real potential problems. You can track progress in that issue.
👍🏼 1