Skip to content

Commit

Permalink
Whitelist warnings about terminally deprecated Unsafe methods
Browse files Browse the repository at this point in the history
Closes: #304
  • Loading branch information
zakkak committed Dec 17, 2024
1 parent 8c57183 commit 6213684
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ public Pattern[] get(boolean inContainer) {
Pattern.compile(".*WARNING: java\\.lang\\.System::loadLibrary has been called by com\\.aayushatharva\\.brotli4j\\.Brotli4jLoader.*"),
Pattern.compile(".*WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module.*"),
Pattern.compile(".*WARNING: Restricted methods will be blocked in a future release unless native access is enabled.*"),
// Ignore JDK 24+ jctools warnings till https://github.com/JCTools/JCTools/issues/395 gets resolved
Pattern.compile(".*WARNING: A terminally deprecated method in sun.misc.Unsafe has been called.*"),
Pattern.compile(".*WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by .*jctools.util.UnsafeRefArrayAccess.*"),
Pattern.compile(".*WARNING: Please consider reporting this to the maintainers of class .*jctools.util.UnsafeRefArrayAccess"),
Pattern.compile(".*WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release"),
};
}
},
Expand Down Expand Up @@ -255,7 +260,12 @@ public Pattern[] get(boolean inContainer) {
Pattern.compile(".*Using a deprecated option --allow-incomplete-classpath from" +
".*helidon-webserver-2.2.2.jar.*" +
"Allowing an incomplete classpath is now the default. " +
"Use --link-at-build-time to report linking errors at image build time for a class or package.*")
"Use --link-at-build-time to report linking errors at image build time for a class or package.*"),
// Ignore JDK 24+ warning till https://github.com/classgraph/classgraph/issues/899 gets fixed
Pattern.compile(".*WARNING: A terminally deprecated method in sun.misc.Unsafe has been called.*"),
Pattern.compile(".*WARNING: sun.misc.Unsafe::invokeCleaner has been called by .*nonapi.io.github.classgraph.utils.FileUtils.*"),
Pattern.compile(".*WARNING: Please consider reporting this to the maintainers of class .*nonapi.io.github.classgraph.utils.FileUtils"),
Pattern.compile(".*WARNING: sun.misc.Unsafe::invokeCleaner will be removed in a future release"),
};
}
},
Expand Down Expand Up @@ -317,6 +327,11 @@ public Pattern[] get(boolean inContainer) {
Pattern.compile(".*WARNING: java\\.lang\\.System::loadLibrary has been called by com\\.aayushatharva\\.brotli4j\\.Brotli4jLoader.*"),
Pattern.compile(".*WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module.*"),
Pattern.compile(".*WARNING: Restricted methods will be blocked in a future release unless native access is enabled.*"),
// Ignore JDK 24+ jctools warnings till https://github.com/JCTools/JCTools/issues/395 gets resolved
Pattern.compile(".*WARNING: A terminally deprecated method in sun.misc.Unsafe has been called.*"),
Pattern.compile(".*WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by .*jctools.util.UnsafeRefArrayAccess.*"),
Pattern.compile(".*WARNING: Please consider reporting this to the maintainers of class .*jctools.util.UnsafeRefArrayAccess"),
Pattern.compile(".*WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release"),
};
}
}
Expand Down

0 comments on commit 6213684

Please sign in to comment.