8311530: Deprecate jdk.jsobject module for removal

Reviewed-by: rriggs, alanb, erikj
This commit is contained in:
Kevin Rushforth 2024-10-18 00:23:39 +00:00 committed by Roger Riggs
parent f7e8f5064a
commit 2b03dbdac4
7 changed files with 22 additions and 10 deletions

View file

@ -62,6 +62,7 @@ UPGRADEABLE_PLATFORM_MODULES= \
java.compiler \
jdk.graal.compiler \
jdk.graal.compiler.management \
jdk.jsobject \
#
PLATFORM_MODULES= \
@ -79,7 +80,6 @@ PLATFORM_MODULES= \
jdk.crypto.cryptoki \
jdk.dynalink \
jdk.httpserver \
jdk.jsobject \
jdk.localedata \
jdk.naming.dns \
jdk.security.auth \

View file

@ -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.*";

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -28,7 +28,10 @@
*
* @moduleGraph
* @since 9
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
*/
@Deprecated(since = "24", forRemoval = true)
@SuppressWarnings("removal")
module jdk.jsobject {
exports netscape.javascript;
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -30,7 +30,10 @@ package netscape.javascript;
* a marker class to indicate an exception relating to the JavaScript
* interface.
* @since 1.5
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
*/
@Deprecated(since = "24", forRemoval = true)
@SuppressWarnings("removal")
public class JSException extends RuntimeException {
private static final long serialVersionUID = 2778103758223661489L;

View file

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

View file

@ -24,6 +24,12 @@
*/
/**
* <p>
* <b>Deprecated, for removal: This API element is subject to removal
* in a future version.</b><br>
* <em>The jdk.jsobject module will be delivered with JavaFX.</em>
* </p>
*
* <p>
* Provides Java code the ability to access the JavaScript engine and the
* HTML DOM in the web browser.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -45,7 +45,8 @@ public class UpgradeableModules {
private static final List<String> UPGRADEABLE_MODULES =
List.of("java.compiler",
"jdk.graal.compiler",
"jdk.graal.compiler.management");
"jdk.graal.compiler.management",
"jdk.jsobject");
public static void main(String... args) {