Skip to content

Commit 2b03dbd

Browse files
kevinrushforthRoger Riggs
authored and
Roger Riggs
committed
8311530: Deprecate jdk.jsobject module for removal
Reviewed-by: rriggs, alanb, erikj
1 parent f7e8f50 commit 2b03dbd

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

make/conf/module-loader-map.conf

+1-1
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

-4
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

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,10 @@
2828
*
2929
* @moduleGraph
3030
* @since 9
31+
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
3132
*/
33+
@Deprecated(since = "24", forRemoval = true)
34+
@SuppressWarnings("removal")
3235
module jdk.jsobject {
3336
exports netscape.javascript;
3437
}

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,7 +30,10 @@
3030
* a marker class to indicate an exception relating to the JavaScript
3131
* interface.
3232
* @since 1.5
33+
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
3334
*/
35+
@Deprecated(since = "24", forRemoval = true)
36+
@SuppressWarnings("removal")
3437
public class JSException extends RuntimeException {
3538
private static final long serialVersionUID = 2778103758223661489L;
3639

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -44,7 +44,10 @@
4444
* engine is converted to JavaScript data types.
4545
* </p>
4646
* @since 1.5
47+
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
4748
*/
49+
@Deprecated(since = "24", forRemoval = true)
50+
@SuppressWarnings("removal")
4851
public abstract class JSObject {
4952
/**
5053
* Constructs a new JSObject. Users should neither call this method nor

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

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
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>The jdk.jsobject module will be delivered with JavaFX.</em>
31+
* </p>
32+
*
2733
* <p>
2834
* Provides Java code the ability to access the JavaScript engine and the
2935
* HTML DOM in the web browser.

test/jdk/jdk/modules/etc/UpgradeableModules.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -45,7 +45,8 @@ public class UpgradeableModules {
4545
private static final List<String> UPGRADEABLE_MODULES =
4646
List.of("java.compiler",
4747
"jdk.graal.compiler",
48-
"jdk.graal.compiler.management");
48+
"jdk.graal.compiler.management",
49+
"jdk.jsobject");
4950

5051

5152
public static void main(String... args) {

0 commit comments

Comments
 (0)