< prev index next >

src/java.base/share/classes/com/sun/java/util/jar/pack/Constants.java

Print this page


   1 /*
   2  * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  34  */
  35 class Constants {
  36 
  37     private Constants(){}
  38 
  39     public static final int JAVA_MAGIC = 0xCAFEBABE;
  40 
  41     /*
  42         Java Class Version numbers history
  43         1.0 to 1.3.X 45,3
  44         1.4 to 1.4.X 46,0
  45         1.5 to 1.5.X 49,0
  46         1.6 to 1.6.X 50,0
  47         1.7 to 1.7.X 51,0
  48         1.8 to 1.8.X 52,0
  49         1.9 to 1.9.X 53,0
  50         1.10 to 1.10.X 54,0
  51         1.11 to 1.11.X 55,0
  52         1.12 to 1.12.X 56,0
  53         1.13 to 1.13.X 57,0
  54         1.14 to 1.14.X 58,0
  55     */
  56 
  57     public static final Package.Version JAVA_MIN_CLASS_VERSION =
  58             Package.Version.of(45, 03);
  59 
  60     public static final Package.Version JAVA5_MAX_CLASS_VERSION =
  61             Package.Version.of(49, 00);
  62 
  63     public static final Package.Version JAVA6_MAX_CLASS_VERSION =
  64             Package.Version.of(50, 00);
  65 
  66     public static final Package.Version JAVA7_MAX_CLASS_VERSION =
  67             Package.Version.of(51, 00);
  68 
  69     public static final Package.Version JAVA8_MAX_CLASS_VERSION =
  70             Package.Version.of(52, 00);
  71 
  72     public static final Package.Version JAVA9_MAX_CLASS_VERSION =
  73             Package.Version.of(53, 00);
  74 
  75     public static final Package.Version JAVA10_MAX_CLASS_VERSION =
  76             Package.Version.of(54, 00);
  77 
  78     public static final Package.Version JAVA11_MAX_CLASS_VERSION =
  79             Package.Version.of(55, 00);
  80 
  81     public static final Package.Version JAVA12_MAX_CLASS_VERSION =
  82             Package.Version.of(56, 00);
  83 
  84     public static final Package.Version JAVA13_MAX_CLASS_VERSION =
  85             Package.Version.of(57, 00);
  86 
  87     public static final Package.Version JAVA14_MAX_CLASS_VERSION =
  88             Package.Version.of(58, 00);
  89 
  90     public static final int JAVA_PACKAGE_MAGIC = 0xCAFED00D;
  91 
  92     public static final Package.Version JAVA5_PACKAGE_VERSION =
  93             Package.Version.of(150, 7);
  94 
  95     public static final Package.Version JAVA6_PACKAGE_VERSION =
  96             Package.Version.of(160, 1);
  97 
  98     public static final Package.Version JAVA7_PACKAGE_VERSION =
  99             Package.Version.of(170, 1);
 100 
 101     public static final Package.Version JAVA8_PACKAGE_VERSION =
 102             Package.Version.of(171, 0);
 103 
 104     // upper limit, should point to the latest class version
 105     public static final Package.Version JAVA_MAX_CLASS_VERSION =
 106             JAVA13_MAX_CLASS_VERSION;
 107 
 108     // upper limit should point to the latest package version, for version info!.


   1 /*
   2  * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  34  */
  35 class Constants {
  36 
  37     private Constants(){}
  38 
  39     public static final int JAVA_MAGIC = 0xCAFEBABE;
  40 
  41     /*
  42         Java Class Version numbers history
  43         1.0 to 1.3.X 45,3
  44         1.4 to 1.4.X 46,0
  45         1.5 to 1.5.X 49,0
  46         1.6 to 1.6.X 50,0
  47         1.7 to 1.7.X 51,0
  48         1.8 to 1.8.X 52,0
  49         1.9 to 1.9.X 53,0
  50         1.10 to 1.10.X 54,0
  51         1.11 to 1.11.X 55,0
  52         1.12 to 1.12.X 56,0
  53         1.13 to 1.13.X 57,0

  54     */
  55 
  56     public static final Package.Version JAVA_MIN_CLASS_VERSION =
  57             Package.Version.of(45, 03);
  58 
  59     public static final Package.Version JAVA5_MAX_CLASS_VERSION =
  60             Package.Version.of(49, 00);
  61 
  62     public static final Package.Version JAVA6_MAX_CLASS_VERSION =
  63             Package.Version.of(50, 00);
  64 
  65     public static final Package.Version JAVA7_MAX_CLASS_VERSION =
  66             Package.Version.of(51, 00);
  67 
  68     public static final Package.Version JAVA8_MAX_CLASS_VERSION =
  69             Package.Version.of(52, 00);
  70 
  71     public static final Package.Version JAVA9_MAX_CLASS_VERSION =
  72             Package.Version.of(53, 00);
  73 
  74     public static final Package.Version JAVA10_MAX_CLASS_VERSION =
  75             Package.Version.of(54, 00);
  76 
  77     public static final Package.Version JAVA11_MAX_CLASS_VERSION =
  78             Package.Version.of(55, 00);
  79 
  80     public static final Package.Version JAVA12_MAX_CLASS_VERSION =
  81             Package.Version.of(56, 00);
  82 
  83     public static final Package.Version JAVA13_MAX_CLASS_VERSION =
  84             Package.Version.of(57, 00);



  85 
  86     public static final int JAVA_PACKAGE_MAGIC = 0xCAFED00D;
  87 
  88     public static final Package.Version JAVA5_PACKAGE_VERSION =
  89             Package.Version.of(150, 7);
  90 
  91     public static final Package.Version JAVA6_PACKAGE_VERSION =
  92             Package.Version.of(160, 1);
  93 
  94     public static final Package.Version JAVA7_PACKAGE_VERSION =
  95             Package.Version.of(170, 1);
  96 
  97     public static final Package.Version JAVA8_PACKAGE_VERSION =
  98             Package.Version.of(171, 0);
  99 
 100     // upper limit, should point to the latest class version
 101     public static final Package.Version JAVA_MAX_CLASS_VERSION =
 102             JAVA13_MAX_CLASS_VERSION;
 103 
 104     // upper limit should point to the latest package version, for version info!.


< prev index next >