JDK-8344059 : Remove doPrivileged calls from windows platform sources in the java.desktop module
  • Type: Bug
  • Component: client-libs
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-11-12
  • Updated: 2024-11-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24Unresolved
Related Reports
Relates :  
Description
Since JEP 486 : Permanently Disable the Security Manager
[https://bugs.openjdk.org/browse/JDK-8338625] is now integrated, calls to java.security.AccessController.doPrivileged are obsolete and can be removed.

This bug enumerates windows-platform files in the java.desktop module that can have them removed.
The fix for this should focus on removing these, and exclude any refactoring, reformatting, or other clean up that is not required for this fix.
Any SM related imports that are no longer needed they should be removed.
Also avoid any other SecurityManager related clean up even in the same file.
Those will be addressed in follow-on bugs.

./windows/classes/sun/print/PrintServiceLookupProvider.java
./windows/classes/sun/java2d/windows/WindowsFlags.java
./windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java
./windows/classes/sun/awt/shell/Win32ShellFolderManager2.java
./windows/classes/sun/awt/Win32FontManager.java
./windows/classes/sun/awt/Win32GraphicsDevice.java
./windows/classes/sun/awt/windows/WFileDialogPeer.java
./windows/classes/sun/awt/windows/TranslucentWindowPainter.java
./windows/classes/sun/awt/windows/WPathGraphics.java
./windows/classes/sun/awt/windows/WEmbeddedFrame.java
./windows/classes/sun/awt/windows/WToolkit.java
./windows/classes/sun/awt/windows/WMenuItemPeer.java
./windows/classes/sun/awt/windows/WFramePeer.java
./windows/classes/sun/awt/PlatformGraphicsInfo.java
./windows/classes/com/sun/java/swing/plaf/windows/AnimationController.java
./windows/classes/com/sun/java/swing/plaf/windows/XPStyle.java
./windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java

Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22083 Date: 2024-11-13 17:41:48 +0000
13-11-2024