Summary
Remove the jdk.jsobject
module. This module is now included with JavaFX.
Problem
As noted in JDK-8338250, jdk.jsobject
is a legacy JDK module that delivers a single package, netscape.javascript
. It is not used by the JDK and is deprecated for removal as of JDK 24. It is only used by JavaFX WebView for Java <--> JavaScript interoperation. Prior to JDK 11, it was also used by the LiveConnect feature of Java Plug-In to allow applets to communicate with the hosting web page. JavaFX, which was unbundled from the JDK in 11, is the only remaining client of the jdk.jsobject
APIs.
Solution
Remove the terminally deprecated jdk.jsobject
module. This module is now delivered with JavaFX, as of JavaFX 24. Applications that need the jdk.jsobject
module will use it along with the javafx.web
module from the JavaFX distribution.
Specification
Remove the jdk.jsobject
module, the netscape.javascript
package, and all public types in that package. The list of removed types is as follows:
Package netscape.javascript
:
JSException
JSObject
See the attached 8359760.patch file for the diffs.
- csr of
-
JDK-8359760 Remove the jdk.jsobject module
-
- Resolved
-
- relates to
-
JDK-8338250 Deprecate jdk.jsobject module for removal
-
- Closed
-