Skip to content

Commit

Permalink
awtt
Browse files Browse the repository at this point in the history
  • Loading branch information
kairoh committed Oct 8, 2023
1 parent 9bb48fe commit 563a3d6
Showing 1 changed file with 22 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,19 @@ ReflectiveClassBuildItem setupReflectionClassesWithMethods() {
"sun.java2d.loops.SetDrawRectANY",
"sun.java2d.loops.SetFillPathANY",
"sun.java2d.loops.SetFillRectANY",
"sun.java2d.loops.SetFillSpansANY" //
"sun.java2d.loops.SetFillSpansANY",
// k : addition see https://github.com/AlexanderScherbatiy/graal/blob/7b1b5c9f785abc4b2d345bdd313d46abf821ccea/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/jdk/JNIRegistrationAwt.java
"sun.java2d.loops.XorCopyArgbToAny",
"sun.java2d.loops.XorFillRectANY",
"sun.java2d.loops.XorFillPathANY",
"sun.java2d.loops.XorFillSpansANY",
"sun.java2d.loops.XorDrawLineANY",
"sun.java2d.loops.XorDrawPolygonsANY",
"sun.java2d.loops.XorDrawPathANY",
"sun.java2d.loops.XorDrawRectANY",
"sun.java2d.loops.XorDrawGlyphListANY",
"sun.java2d.loops.XorDrawGlyphListAAANY"
//
).methods().build();
}

Expand Down Expand Up @@ -264,15 +276,16 @@ JniRuntimeAccessBuildItem setupJava2DClasses(NativeImageRunnerBuildItem nativeIm
// Added for JDK 19+ due to: https://github.com/openjdk/jdk20/commit/9bc023220 calling FontUtilities
if (v.jdkVersionGreaterOrEqualTo(19, 0)) {
classes.add("sun.font.FontUtilities");
// k: test
classes.add("sun.font.FontManager");
classes.add("sun.font.StrikeCache");
classes.add("javax.imageio.ImageIO");
classes.add("javax.imageio.ImageIO$ImageWriterIterator");
//classes.add("javax.imageio.stream.FileImageInputStream");
//classes.add("javax.imageio.stream.FileImageOutputStream");
// k: end
}

// k: test
classes.add("sun.font.FontManager");
classes.add("sun.font.StrikeCache");
classes.add("sun.awt.image.JPEGImageDecoder");
classes.add("sun.java2d.xr.XRBackendNative");
classes.add("javax.imageio.ImageIO");
classes.add("javax.imageio.ImageIO$ImageWriterIterator");
// k: end

return new JniRuntimeAccessBuildItem(true, true, true, classes.toArray(new String[0]));
}
Expand Down

0 comments on commit 563a3d6

Please sign in to comment.