RFR JDK-8177723: Suppress lint removal warning in java.se.ee and jdk.unsupported

Chris Hegarty chris.hegarty at oracle.com
Tue Mar 28 17:29:44 UTC 2017


> On 28 Mar 2017, at 18:12, joe darcy <joe.darcy at oracle.com> wrote:
> 
> Hello,
> 
> The java.se.ee module refers to the java.corba module, which is deprecated for removal. The jdk.unsupported module contains a use of Reflection.getCallerClass, which is deprecated for removal. The warnings associated with this code should be suppressed.
> 
> Please review the associated changes in the webrev:
> 
>    http://cr.openjdk.java.net/~darcy/8177723.0/

Looks fine Joe.

Trivially, you may want to drop the comment in the module-info.java,
since all java.se.ee modules are terminally deprecated.

$ find */src -name "module-info.java" -exec grep "Deprecated" {} \; -print
@Deprecated(since="9", forRemoval=true)
corba/src/java.corba/share/classes/module-info.java
@Deprecated(since="9", forRemoval=true)
jaxws/src/java.activation/share/classes/module-info.java
@Deprecated(since="9", forRemoval=true)
jaxws/src/java.xml.bind/share/classes/module-info.java
@Deprecated(since="9", forRemoval=true)
jaxws/src/java.xml.ws/share/classes/module-info.java
@Deprecated(since="9", forRemoval=true)
jaxws/src/java.xml.ws.annotation/share/classes/module-info.java
@Deprecated(since="9", forRemoval=true)
jdk/src/java.transaction/share/classes/module-info.java
@Deprecated(since="9", forRemoval=true)
jdk/src/jdk.policytool/share/classes/module-info.java

-Chris.


More information about the core-libs-dev mailing list