OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: svn commit: r1829521 - /commons/proper/bcel/trunk/src/main/java/org/apache/bcel/Const.java


Thank you!

Gary

On Thu, Apr 19, 2018, 03:30 <markt@xxxxxxxxxx> wrote:

> Author: markt
> Date: Thu Apr 19 09:30:50 2018
> New Revision: 1829521
>
> URL: http://svn.apache.org/viewvc?rev=1829521&view=rev
> Log:
> Correct names of class version constants given change in Java versioning.
> Fix for Java 9 requires deprecation of old values as they have already
> been released.
>
> Modified:
>     commons/proper/bcel/trunk/src/main/java/org/apache/bcel/Const.java
>
> Modified:
> commons/proper/bcel/trunk/src/main/java/org/apache/bcel/Const.java
> URL:
> http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/Const.java?rev=1829521&r1=1829520&r2=1829521&view=diff
>
> ==============================================================================
> --- commons/proper/bcel/trunk/src/main/java/org/apache/bcel/Const.java
> (original)
> +++ commons/proper/bcel/trunk/src/main/java/org/apache/bcel/Const.java Thu
> Apr 19 09:30:50 2018
> @@ -116,35 +116,47 @@ public final class Const {
>     *  */
>    public static final short MINOR_1_8 = 0;
>
> -  /** Major version number of class files for Java 1.9.
> -   *  @see #MINOR_1_9
> +  /** Major version number of class files for Java 9.
> +   *  @see #MINOR_9
>     *  */
> -  public static final short MAJOR_1_9 = 53;
> +  public static final short MAJOR_9 = 53;
>
> -  /** Minor version number of class files for Java 1.9.
> -   *  @see #MAJOR_1_9
> +  /** Minor version number of class files for Java 9.
> +   *  @see #MAJOR_9
>     *  */
> -  public static final short MINOR_1_9 = 0;
> +  public static final short MINOR_9 = 0;
> +
> +  /**
> +   * @deprecated Use {@link #MAJOR_9} instead
> +   */
> +  @Deprecated
> +  public static final short MAJOR_1_9 = MAJOR_9;
> +
> +  /**
> +   * @deprecated Use {@link #MINOR_9} instead
> +   */
> +  @Deprecated
> +  public static final short MINOR_1_9 = MINOR_9;
>
>    /** Major version number of class files for Java 10.
> -   *  @see #MINOR_1_10
> +   *  @see #MINOR_10
>     *  */
> -  public static final short MAJOR_1_10 = 54;
> +  public static final short MAJOR_10 = 54;
>
>    /** Minor version number of class files for Java 10.
> -   *  @see #MAJOR_1_10
> +   *  @see #MAJOR_10
>     *  */
> -  public static final short MINOR_1_10 = 0;
> +  public static final short MINOR_10 = 0;
>
>    /** Major version number of class files for Java 11.
> -   *  @see #MINOR_1_11
> +   *  @see #MINOR_11
>     *  */
> -  public static final short MAJOR_1_11 = 55;
> +  public static final short MAJOR_11 = 55;
>
>    /** Minor version number of class files for Java 11.
> -   *  @see #MAJOR_1_11
> +   *  @see #MAJOR_11
>     *  */
> -  public static final short MINOR_1_11 = 0;
> +  public static final short MINOR_11 = 0;
>
>    /** Default major version number.  Class file is for Java 1.1.
>     *  @see #MAJOR_1_1
>
>
>