From 26d25fcc363d3779e0eb8fdef0dd9582047506f4 Mon Sep 17 00:00:00 2001 From: Michal Karm Babacek Date: Mon, 23 Jan 2023 17:33:45 +0100 Subject: [PATCH] AWT: JniRuntimeAccess: freetypeScaler.c calls sun.font.FontUtilities As of late JDK 18, with [9bc023220](https://github.com/openjdk/jdk20/commit/9bc023220), freetypeScaler.c has started to call sun.font.FontUtilities. This change marks it for JNI Access for all JDK versions, i.e. superfluously for JDK11 and JDK17. --- .../src/main/java/io/quarkus/awt/deployment/AwtProcessor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/awt/deployment/src/main/java/io/quarkus/awt/deployment/AwtProcessor.java b/extensions/awt/deployment/src/main/java/io/quarkus/awt/deployment/AwtProcessor.java index da13c2ea17712..0cb63f461a14c 100644 --- a/extensions/awt/deployment/src/main/java/io/quarkus/awt/deployment/AwtProcessor.java +++ b/extensions/awt/deployment/src/main/java/io/quarkus/awt/deployment/AwtProcessor.java @@ -143,6 +143,8 @@ JniRuntimeAccessBuildItem setupJava2DClasses() { "sun.font.FontConfigManager", "sun.font.FontManagerNativeLibrary", "sun.font.FontStrike", + // Added for JDK 19+ due to: https://github.com/openjdk/jdk20/commit/9bc023220 calling FontUtilities + "sun.font.FontUtilities", "sun.font.FreetypeFontScaler", "sun.font.GlyphLayout", "sun.font.GlyphLayout$EngineRecord",