8331671: Implement JEP 472: Prepare to Restrict the Use of JNI

Reviewed-by: jpai, prr, ihse, kcr, alanb
This commit is contained in:
Maurizio Cimadamore 2024-08-26 09:17:45 +00:00
parent ce83f6af64
commit 20d8f58c92
107 changed files with 551 additions and 182 deletions

View file

@ -54,7 +54,7 @@ public class PrintServiceLookupProvider extends PrintServiceLookup {
loadAWTLibrary();
}
@SuppressWarnings("removal")
@SuppressWarnings({"removal", "restricted"})
private static void loadAWTLibrary() {
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction<Void>() {