Skip to content

Commit 601264d

Browse files
committedDec 5, 2022
8273357: SecurityManager deprecation warning from java/awt/regtesthelpers/Util.java
Reviewed-by: kizune, aivanov
1 parent 6a7a0db commit 601264d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎test/jdk/java/awt/regtesthelpers/Util.java

+1
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ public static int getWMID() {
450450
Method m_addExports = Class.forName("java.awt.Helper").getDeclaredMethod("addExports", String.class, java.lang.Module.class);
451451
// We may be called from non-X11 system, and this permission cannot be delegated to a test.
452452
m_addExports.invoke(null, "sun.awt.X11", Util.class.getModule());
453+
@SuppressWarnings("removal")
453454
Method m_getWMID = (Method)AccessController.doPrivileged(new PrivilegedAction() {
454455
public Object run() {
455456
try {

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Dec 5, 2022

@openjdk-notifier[bot]
Please sign in to comment.