JDK-8177684 : Suppress lint removal warnings in AppletSecurity
  • Type: Sub-task
  • Component: deploy
  • Sub-Component: webstart
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-03-28
  • Updated: 2017-04-22
  • Resolved: 2017-04-13
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 10 JDK 9
10Fixed 9 b166Fixed
Related Reports
Relates :  
Description
The AppletSecurity class uses several APIs that are deprecated for removal. The warnings generated by these uses should be suppressed.
Comments
Out for internal review, patch: --- old/src/java.desktop/share/classes/sun/applet/AppletSecurity.java 2017-03-27 18:27:15.745582328 -0700 +++ new/src/java.desktop/share/classes/sun/applet/AppletSecurity.java 2017-03-27 18:27:15.537582337 -0700 @@ -109,7 +109,8 @@ /** * get the current (first) instance of an AppletClassLoader on the stack. */ - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", + "removal"}) // SecurityManager.currentClassLoader() private AppletClassLoader currentAppletClassLoader() { // try currentClassLoader first @@ -298,7 +299,8 @@ * @exception SecurityException if the caller does not have * permission to access the AWT event queue. */ - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", + "removal"}) // SecurityManager.checkAwtEventQueueAccess public void checkAwtEventQueueAccess() { AppContext appContext = AppContext.getAppContext(); AppletClassLoader appletClassLoader = currentAppletClassLoader();
31-03-2017

Not entirely sure if deploy:webstart is the proper category and subcategory for this bug.
28-03-2017