JDK-8155031 : Simplify code to get System properties in java.desktop
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2016-04-25
  • Updated: 2018-04-20
  • Resolved: 2018-04-20
Related Reports
Blocks :  
Description
JDK-8154231 introduced convenience methods to get System.getProperty/getProperties which should be used in favor of AccessController.doPrivileged(new GetPropertyAction(key));
Comments
The API is under review to make it more clear that these methods are doing a privileged action and should be treated with some extra care.
29-04-2016