Skip to content

Commit

Permalink
8311530: Deprecate jdk.jsobject module for removal
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrushforth committed Aug 2, 2024
1 parent 7deee74 commit 7593af8
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion make/conf/module-loader-map.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ UPGRADEABLE_PLATFORM_MODULES= \
java.compiler \
jdk.graal.compiler \
jdk.graal.compiler.management \
jdk.jsobject \
#

PLATFORM_MODULES= \
Expand All @@ -79,7 +80,6 @@ PLATFORM_MODULES= \
jdk.crypto.cryptoki \
jdk.dynalink \
jdk.httpserver \
jdk.jsobject \
jdk.localedata \
jdk.naming.dns \
jdk.security.auth \
Expand Down
4 changes: 0 additions & 4 deletions src/java.base/share/lib/security/default.policy
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ grant codeBase "jrt:/jdk.graal.compiler" {
permission java.security.AllPermission;
};

grant codeBase "jrt:/jdk.jsobject" {
permission java.security.AllPermission;
};

grant codeBase "jrt:/jdk.localedata" {
permission java.lang.RuntimePermission "accessClassInPackage.sun.text.*";
permission java.lang.RuntimePermission "accessClassInPackage.sun.util.*";
Expand Down
4 changes: 4 additions & 0 deletions src/jdk.jsobject/share/classes/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
*
* @moduleGraph
* @since 9
* @deprecated Users are advised to ship the jdk.jsobject module
* with their application.
*/
@Deprecated(since = "24", forRemoval = true)
@SuppressWarnings("removal")
module jdk.jsobject {
exports netscape.javascript;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
* a marker class to indicate an exception relating to the JavaScript
* interface.
* @since 1.5
* @deprecated Users are advised to ship the jdk.jsobject module
* with their application.
*/
@Deprecated(since = "24", forRemoval = true)
@SuppressWarnings("removal")
public class JSException extends RuntimeException {
private static final long serialVersionUID = 2778103758223661489L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@
* engine is converted to JavaScript data types.
* </p>
* @since 1.5
* @deprecated Users are advised to ship the jdk.jsobject module
* with their application.
*/
@Deprecated(since = "24", forRemoval = true)
@SuppressWarnings("removal")
public abstract class JSObject {
/**
* Constructs a new JSObject. Users should neither call this method nor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
*/

/**
* <p>
* <b>Deprecated, for removal: This API element is subject to removal
* in a future version.</b><br>
* <em>Users are advised to ship the jdk.jsobject module
* with their application.</em>
* </p>
*
* <p>
* Provides Java code the ability to access the JavaScript engine and the
* HTML DOM in the web browser.
Expand Down

0 comments on commit 7593af8

Please sign in to comment.