-
CSR
-
Resolution: Approved
-
P3
-
None
-
behavioral
-
minimal
-
Deprecating the API only expands the set of warning that can be generated for it.
-
Java API
-
JDK
Summary
Deprecate for removal com.sun.awt.SecurityWarning.
Problem
The client code has an internal "com.sun.awt.SecurityWarning" class which at some point in the past, JDK 6u10, was used as a kind of "public" API. Starting jdk9 this class is accessible at runtime, but is NOT accessible at compile time or when the option "--illegal-access=deny" is specified.
Solution
The solutions is to deprecate this APi in jdk10 and remove later.
Specification
src/java.desktop/share/classes/com/sun/awt/SecurityWarning.java
* <b>WARNING</b>: This class is an implementation detail and only meant
* for limited use outside of the core platform. This API may change
* drastically between update release, and it may even be
* removed or be moved to some other packages or classes.
+ *
+ * @deprecated This class is deprecated, no replacement.
*/
+@Deprecated(since = "11", forRemoval = true)
public final class SecurityWarning {
- csr of
-
JDK-8205588 Deprecate for removal com.sun.awt.SecurityWarning
-
- Resolved
-
- relates to
-
JDK-8187253 The "com.sun.awt.AWTUtilities" class can be dropped in favour of public API
-
- Closed
-
-
JDK-8210693 The "com.sun.awt.SecurityWarning" class can be dropped
-
- Closed
-