JDK-8189198 : Add "forRemoval = true" to Applet API deprecations
  • Type: Enhancement
  • Component: client-libs
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-10-11
  • Updated: 2021-04-01
  • Resolved: 2021-03-26
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 17
17 b16Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Description
As part of JDK-8149502 Applet APIs were deprecated in 9. We will need to add "forRemoval = true" in JDK 17, so we can remove them in a future release, JDK 18+

Applet APIs:
java.applet.AppletStub
java.applet.Applet
java.applet.AudioClip
java.applet.AppletContext
javax.swing.JApplet
Comments
Changeset: 57115fa2 Author: Andy Herrick <herrick@openjdk.org> Date: 2021-03-26 14:48:00 +0000 URL: https://git.openjdk.java.net/jdk/commit/57115fa2
26-03-2021

files in open/src in JDK-16 that need to be modified to add forRemoval=true: src/java.desktop/share/classes/com/sun/java/swing/SwingUtilities3.java src/java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java src/java.desktop/share/classes/java/applet/Applet.java src/java.desktop/share/classes/java/applet/AppletContext.java src/java.desktop/share/classes/java/applet/AppletStub.java src/java.desktop/share/classes/java/applet/AudioClip.java src/java.desktop/share/classes/java/awt/Component.java src/java.desktop/share/classes/java/awt/color/ICC_Profile.java src/java.desktop/share/classes/java/awt/image/ColorModel.java src/java.desktop/share/classes/java/awt/image/IndexColorModel.java src/java.desktop/share/classes/java/beans/AppletInitializer.java src/java.desktop/share/classes/java/beans/Beans.java src/java.desktop/share/classes/javax/swing/JApplet.java src/java.desktop/share/classes/javax/swing/JComponent.java src/java.desktop/share/classes/javax/swing/JTable.java src/java.desktop/share/classes/javax/swing/KeyboardManager.java src/java.desktop/share/classes/javax/swing/PopupFactory.java src/java.desktop/share/classes/javax/swing/RepaintManager.java src/java.desktop/share/classes/javax/swing/SwingUtilities.java src/java.desktop/share/classes/javax/swing/ToolTipManager.java src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java src/java.desktop/share/classes/sun/awt/EmbeddedFrame.java but we need to consider the tests in open/test that may need further @SuppressWarning annotations.
10-11-2020

also needed is addition of @SuppressWarnings({"deprecation", "removal"}) (or just adding "removal" if deprecation is already there) to the following: src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameUI.java src/java.desktop/share/classes/com/sun/java/swing/SwingUtilities3.java src/java.desktop/share/classes/com/sun/media/sound/JavaSoundAudioClip.java src/java.desktop/share/classes/java/awt/Component.java src/java.desktop/share/classes/java/beans/AppletInitializer.java src/java.desktop/share/classes/java/beans/Beans.java src/java.desktop/share/classes/javax/swing/BufferStrategyPaintManager.java src/java.desktop/share/classes/javax/swing/JComponent.java src/java.desktop/share/classes/javax/swing/JTable.java src/java.desktop/share/classes/javax/swing/KeyboardManager.java src/java.desktop/share/classes/javax/swing/PopupFactory.java src/java.desktop/share/classes/javax/swing/RepaintManager.java src/java.desktop/share/classes/javax/swing/SwingUtilities.java src/java.desktop/share/classes/javax/swing/ToolTipManager.java src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPopupMenuUI.java src/java.desktop/share/classes/sun/applet/AppletAudioClip.java src/java.desktop/share/classes/sun/applet/AppletClassLoader.java src/java.desktop/share/classes/sun/applet/AppletEvent.java src/java.desktop/share/classes/sun/applet/AppletEventMulticaster.java src/java.desktop/share/classes/sun/applet/AppletIOException.java src/java.desktop/share/classes/sun/applet/AppletIllegalArgumentException.java src/java.desktop/share/classes/sun/applet/AppletImageRef.java src/java.desktop/share/classes/sun/applet/AppletListener.java src/java.desktop/share/classes/sun/applet/AppletMessageHandler.java src/java.desktop/share/classes/sun/applet/AppletObjectInputStream.java src/java.desktop/share/classes/sun/applet/AppletPanel.java src/java.desktop/share/classes/sun/applet/AppletProps.java src/java.desktop/share/classes/sun/applet/AppletResourceLoader.java src/java.desktop/share/classes/sun/applet/AppletSecurity.java src/java.desktop/share/classes/sun/applet/AppletSecurityException.java src/java.desktop/share/classes/sun/applet/AppletThreadGroup.java src/java.desktop/share/classes/sun/applet/AppletViewer.java src/java.desktop/share/classes/sun/applet/AppletViewerFactory.java src/java.desktop/share/classes/sun/applet/AppletViewerPanel.java src/java.desktop/share/classes/sun/applet/Main.java src/java.desktop/share/classes/sun/awt/EmbeddedFrame.java src/java.desktop/share/classes/sun/awt/www/content/audio/aiff.java src/java.desktop/share/classes/sun/awt/www/content/audio/basic.java src/java.desktop/share/classes/sun/awt/www/content/audio/wav.java src/java.desktop/share/classes/sun/awt/www/content/audio/x_aiff.java src/java.desktop/share/classes/sun/awt/www/content/audio/x_wav.java src/java.desktop/share/classes/sun/font/SunFontManager.java src/jdk.jsobject/share/classes/jdk/internal/netscape/javascript/spi/JSObjectProvider.java src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java
13-10-2017