JDK-8155853 : jdk.Version.current() javadoc declares it can throw SecurityException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2016-05-02
  • Updated: 2016-05-19
  • Resolved: 2016-05-19
Related Reports
Relates :  
Description
Since the call to System.getProperties is wrapped in a privileged action, the SecurityException declared can never be thrown.
Comments
The move of jdk.Version to java.lang.Runtime.Version (JDK-8144062) included replacement of jdk.Version.current() with Runtime.version(). The specification of version() does not contain the problematic @throws: /** * Returns the version of the Java Runtime Environment as a {@link * Runtime.Version}. * * @return the {@link Runtime.Version} of the Java Runtime Environment * * @since 9 */ public static Version version() { } Resolving this issues as "Duplicate" of JDK-8144062 since the problem was resolved as a result of those changes.
19-05-2016

Raised priority to P3 since this affects the API and the best time to fix this is before 9 is released.
03-05-2016