Skip to content

Commit

Permalink
JBR-7151 Test PropertyPermissionOnEDT and others fail with ExceptionI…
Browse files Browse the repository at this point in the history
…nInitializerError
  • Loading branch information
mkartashev committed May 15, 2024
1 parent 5354167 commit 469130b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/java.desktop/share/classes/java/awt/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -4460,7 +4460,9 @@ private Point2D calculateSecurityWarningPosition(double x, double y,
}

static {
String counters = System.getProperty("awt.window.counters");
@SuppressWarnings("removal")
String counters = AccessController.doPrivileged(
new GetPropertyAction("awt.window.counters"));

AWTAccessor.setWindowAccessor(new AWTAccessor.WindowAccessor() {
public void updateWindow(Window window) {
Expand Down

0 comments on commit 469130b

Please sign in to comment.