JEP 504: Remove the Applet API (original) (raw)

Owner Philip Race
Type Feature
Scope SE
Status Candidate
Component client-libs / java.awt
Discussion client dash libs dash dev at openjdk dot org
Effort S
Duration S
Relates to JEP 289: Deprecate the Applet API
JEP 398: Deprecate the Applet API for Removal
Reviewed by Kevin Rushforth, Victor Dyakov
Created 2024/12/04 20:33
Updated 2025/04/10 17:32
Issue 8345525

Summary

Remove the Applet API, which was deprecated for removal in JDK 17 (2021). It is obsolete because neither recent JDK releases nor current web browsers support applets.

Motivation

There is no reason to keep the unused and unusable Applet API.

Description

We will remove the following elements of the Java Platform API:

java.applet.Applet  
java.applet.AppletContext  
java.applet.AppletStub  
java.applet.AudioClip  
java.beans.AppletInitializer  
javax.swing.JApplet  
java.beans.Beans  
javax.naming.Context  
javax.swing.RepaintManager  

Testing

Any tests which rely on the Applet API will need to be updated, disabled, or removed. For jtreg-based tests in the main-line JDK repository, this work is almost complete. Most such tests merely use the Applet API for convenience; few of them explicitly test the API.

Risks and Assumptions