JDK 15 RFR of JDK-8230771: Remove terminally deprecated constructors in java.base

Lance Andersen lance.andersen at oracle.com
Sun Dec 8 19:23:14 UTC 2019


+1

> On Dec 8, 2019, at 1:58 PM, Joe Darcy <joe.darcy at oracle.com> wrote:
> 
> Hello,
> 
> Please review this small API changes for JDK 15:
> 
>     JDK-8230771: Remove terminally deprecated constructors in java.base
>     CSR: https://bugs.openjdk.java.net/browse/JDK-8235548
>     webrev: http://cr.openjdk.java.net/~darcy/8230771.0/
> 
> Patch below.
> 
> Thanks,
> 
> -Joe
> 
> --- old/src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java 2019-12-08 10:56:14.223168685 -0800
> +++ new/src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java 2019-12-08 10:56:13.999168685 -0800
> @@ -40,12 +40,6 @@
>   * @since 11
>   */
>  public final class ConstantBootstraps {
> -    /**
> -     * Do not call.
> -     */
> -    @Deprecated(forRemoval=true, since="14")
> -    public ConstantBootstraps() {}
> -
>      // implements the upcall from the JVM, MethodHandleNatives.linkDynamicConstant:
>      /*non-public*/
>      static Object makeConstant(MethodHandle bootstrapMethod,
> --- old/src/java.base/share/classes/java/lang/reflect/Modifier.java 2019-12-08 10:56:14.775168685 -0800
> +++ new/src/java.base/share/classes/java/lang/reflect/Modifier.java 2019-12-08 10:56:14.555168685 -0800
> @@ -44,13 +44,6 @@
>   */
>  public class Modifier {
>      /**
> -     * Do not call.
> -     */
> -    @Deprecated(forRemoval=true, since="14")
> -    public Modifier() {}
> -
> -
> -    /**
>       * Return {@code true} if the integer argument includes the
>       * {@code public} modifier, {@code false} otherwise.
>       *
> 

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>





More information about the core-libs-dev mailing list