changeset 14407:09c87f7a7199

7050936: (pack200) Support version 52.0 class files in langtools Reviewed-by: dholmes
author ksrini
date Mon, 05 Nov 2012 15:00:55 -0800
parents 0c65c125ff9d
children db08012d1d6f
files jdk/src/share/classes/com/sun/java/util/jar/pack/Constants.java jdk/src/share/native/com/sun/java/util/jar/pack/constants.h
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/com/sun/java/util/jar/pack/Constants.java	Mon Nov 05 14:53:05 2012 -0800
+++ b/jdk/src/share/classes/com/sun/java/util/jar/pack/Constants.java	Mon Nov 05 15:00:55 2012 -0800
@@ -59,6 +59,9 @@
     public final static Package.Version JAVA7_MAX_CLASS_VERSION =
             Package.Version.of(51, 00);
 
+    public final static Package.Version JAVA8_MAX_CLASS_VERSION =
+            Package.Version.of(52, 00);
+
     public final static int JAVA_PACKAGE_MAGIC = 0xCAFED00D;
 
     public final static Package.Version JAVA5_PACKAGE_VERSION =
@@ -72,7 +75,7 @@
 
     // upper limit, should point to the latest class version
     public final static Package.Version JAVA_MAX_CLASS_VERSION =
-            JAVA7_MAX_CLASS_VERSION;
+            JAVA8_MAX_CLASS_VERSION;
 
     // upper limit should point to the latest package version, for version info!.
     public final static Package.Version MAX_PACKAGE_VERSION =
--- a/jdk/src/share/native/com/sun/java/util/jar/pack/constants.h	Mon Nov 05 14:53:05 2012 -0800
+++ b/jdk/src/share/native/com/sun/java/util/jar/pack/constants.h	Mon Nov 05 15:00:55 2012 -0800
@@ -35,12 +35,19 @@
 #define JAVA_MAGIC 0xCAFEBABE
 #define JAVA_MIN_MAJOR_VERSION 45
 #define JAVA_MIN_MINOR_VERSION 3
+
 #define JAVA5_MAX_MAJOR_VERSION 49
 #define JAVA5_MAX_MINOR_VERSION 0
-// NOTE: Assume for now
+
 #define JAVA6_MAX_MAJOR_VERSION 50
 #define JAVA6_MAX_MINOR_VERSION 0
 
+#define JAVA7_MAX_MAJOR_VERSION 51
+#define JAVA7_MAX_MINOR_VERSION 0
+
+#define JAVA8_MAX_MAJOR_VERSION 52
+#define JAVA8_MAX_MINOR_VERSION 0
+
 // package file constants
 #define JAVA_PACKAGE_MAGIC 0xCAFED00D
 #define JAVA5_PACKAGE_MAJOR_VERSION 150