Skip to content

Commit

Permalink
Update CacioExtension.java
Browse files Browse the repository at this point in the history
restore manipulation of sun.java2d.SurfaceManagerFactory
  • Loading branch information
janblom authored Feb 9, 2024
1 parent 31363ea commit 3bce65b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ public class CacioExtension implements ExecutionCondition {
defaultHeadlessField.set(null, Boolean.FALSE);
headlessField.set(null, Boolean.FALSE);


Class<?> smfCls = Class.forName("sun.java2d.SurfaceManagerFactory");
Field smf = smfCls.getDeclaredField("instance");
smf.setAccessible(true);
smf.set(null, null);
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 3bce65b

Please sign in to comment.