mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8311530: Deprecate jdk.jsobject module for removal
Reviewed-by: rriggs, alanb, erikj
This commit is contained in:
parent
f7e8f5064a
commit
2b03dbdac4
7 changed files with 22 additions and 10 deletions
|
@ -62,6 +62,7 @@ UPGRADEABLE_PLATFORM_MODULES= \
|
||||||
java.compiler \
|
java.compiler \
|
||||||
jdk.graal.compiler \
|
jdk.graal.compiler \
|
||||||
jdk.graal.compiler.management \
|
jdk.graal.compiler.management \
|
||||||
|
jdk.jsobject \
|
||||||
#
|
#
|
||||||
|
|
||||||
PLATFORM_MODULES= \
|
PLATFORM_MODULES= \
|
||||||
|
@ -79,7 +80,6 @@ PLATFORM_MODULES= \
|
||||||
jdk.crypto.cryptoki \
|
jdk.crypto.cryptoki \
|
||||||
jdk.dynalink \
|
jdk.dynalink \
|
||||||
jdk.httpserver \
|
jdk.httpserver \
|
||||||
jdk.jsobject \
|
|
||||||
jdk.localedata \
|
jdk.localedata \
|
||||||
jdk.naming.dns \
|
jdk.naming.dns \
|
||||||
jdk.security.auth \
|
jdk.security.auth \
|
||||||
|
|
|
@ -167,10 +167,6 @@ grant codeBase "jrt:/jdk.graal.compiler" {
|
||||||
permission java.security.AllPermission;
|
permission java.security.AllPermission;
|
||||||
};
|
};
|
||||||
|
|
||||||
grant codeBase "jrt:/jdk.jsobject" {
|
|
||||||
permission java.security.AllPermission;
|
|
||||||
};
|
|
||||||
|
|
||||||
grant codeBase "jrt:/jdk.localedata" {
|
grant codeBase "jrt:/jdk.localedata" {
|
||||||
permission java.lang.RuntimePermission "accessClassInPackage.sun.text.*";
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.text.*";
|
||||||
permission java.lang.RuntimePermission "accessClassInPackage.sun.util.*";
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.util.*";
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -28,7 +28,10 @@
|
||||||
*
|
*
|
||||||
* @moduleGraph
|
* @moduleGraph
|
||||||
* @since 9
|
* @since 9
|
||||||
|
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "24", forRemoval = true)
|
||||||
|
@SuppressWarnings("removal")
|
||||||
module jdk.jsobject {
|
module jdk.jsobject {
|
||||||
exports netscape.javascript;
|
exports netscape.javascript;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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
|
* a marker class to indicate an exception relating to the JavaScript
|
||||||
* interface.
|
* interface.
|
||||||
* @since 1.5
|
* @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 {
|
public class JSException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 2778103758223661489L;
|
private static final long serialVersionUID = 2778103758223661489L;
|
||||||
|
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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.
|
* engine is converted to JavaScript data types.
|
||||||
* </p>
|
* </p>
|
||||||
* @since 1.5
|
* @since 1.5
|
||||||
|
* @deprecated The jdk.jsobject module will be delivered with JavaFX.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated(since = "24", forRemoval = true)
|
||||||
|
@SuppressWarnings("removal")
|
||||||
public abstract class JSObject {
|
public abstract class JSObject {
|
||||||
/**
|
/**
|
||||||
* Constructs a new JSObject. Users should neither call this method nor
|
* Constructs a new JSObject. Users should neither call this method nor
|
||||||
|
|
|
@ -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>
|
* <p>
|
||||||
* Provides Java code the ability to access the JavaScript engine and the
|
* Provides Java code the ability to access the JavaScript engine and the
|
||||||
* HTML DOM in the web browser.
|
* HTML DOM in the web browser.
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 =
|
private static final List<String> UPGRADEABLE_MODULES =
|
||||||
List.of("java.compiler",
|
List.of("java.compiler",
|
||||||
"jdk.graal.compiler",
|
"jdk.graal.compiler",
|
||||||
"jdk.graal.compiler.management");
|
"jdk.graal.compiler.management",
|
||||||
|
"jdk.jsobject");
|
||||||
|
|
||||||
|
|
||||||
public static void main(String... args) {
|
public static void main(String... args) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue