Skip to content

Commit 7593af8

Browse files
8311530: Deprecate jdk.jsobject module for removal
1 parent 7deee74 commit 7593af8

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

make/conf/module-loader-map.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ UPGRADEABLE_PLATFORM_MODULES= \
6262
java.compiler \
6363
jdk.graal.compiler \
6464
jdk.graal.compiler.management \
65+
jdk.jsobject \
6566
#
6667

6768
PLATFORM_MODULES= \
@@ -79,7 +80,6 @@ PLATFORM_MODULES= \
7980
jdk.crypto.cryptoki \
8081
jdk.dynalink \
8182
jdk.httpserver \
82-
jdk.jsobject \
8383
jdk.localedata \
8484
jdk.naming.dns \
8585
jdk.security.auth \

src/java.base/share/lib/security/default.policy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,6 @@ grant codeBase "jrt:/jdk.graal.compiler" {
167167
permission java.security.AllPermission;
168168
};
169169

170-
grant codeBase "jrt:/jdk.jsobject" {
171-
permission java.security.AllPermission;
172-
};
173-
174170
grant codeBase "jrt:/jdk.localedata" {
175171
permission java.lang.RuntimePermission "accessClassInPackage.sun.text.*";
176172
permission java.lang.RuntimePermission "accessClassInPackage.sun.util.*";

src/jdk.jsobject/share/classes/module-info.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
*
2929
* @moduleGraph
3030
* @since 9
31+
* @deprecated Users are advised to ship the jdk.jsobject module
32+
* with their application.
3133
*/
34+
@Deprecated(since = "24", forRemoval = true)
35+
@SuppressWarnings("removal")
3236
module jdk.jsobject {
3337
exports netscape.javascript;
3438
}

src/jdk.jsobject/share/classes/netscape/javascript/JSException.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
* a marker class to indicate an exception relating to the JavaScript
3131
* interface.
3232
* @since 1.5
33+
* @deprecated Users are advised to ship the jdk.jsobject module
34+
* with their application.
3335
*/
36+
@Deprecated(since = "24", forRemoval = true)
37+
@SuppressWarnings("removal")
3438
public class JSException extends RuntimeException {
3539
private static final long serialVersionUID = 2778103758223661489L;
3640

src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
* engine is converted to JavaScript data types.
4545
* </p>
4646
* @since 1.5
47+
* @deprecated Users are advised to ship the jdk.jsobject module
48+
* with their application.
4749
*/
50+
@Deprecated(since = "24", forRemoval = true)
51+
@SuppressWarnings("removal")
4852
public abstract class JSObject {
4953
/**
5054
* Constructs a new JSObject. Users should neither call this method nor

src/jdk.jsobject/share/classes/netscape/javascript/package-info.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
*/
2525

2626
/**
27+
* <p>
28+
* <b>Deprecated, for removal: This API element is subject to removal
29+
* in a future version.</b><br>
30+
* <em>Users are advised to ship the jdk.jsobject module
31+
* with their application.</em>
32+
* </p>
33+
*
2734
* <p>
2835
* Provides Java code the ability to access the JavaScript engine and the
2936
* HTML DOM in the web browser.

0 commit comments

Comments
 (0)