6899467: System property java.class.version out-of-sync with VM for jdk 5.0 with HS 16 in nightly build
authorxlu
Wed, 16 Dec 2009 13:16:08 -0800
changeset 4494 1f53dff2f6a5
parent 4492 63c49e60fc25
child 4495 b0a78f8af465
child 4496 c5a0b15a8e7d
6899467: System property java.class.version out-of-sync with VM for jdk 5.0 with HS 16 in nightly build Reviewed-by: kvn, never, dholmes, ysr
hotspot/src/share/vm/classfile/classFileParser.cpp
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Mon Dec 14 13:26:29 2009 -0700
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Wed Dec 16 13:16:08 2009 -0800
@@ -3766,8 +3766,9 @@
 }
 
 bool ClassFileParser::is_supported_version(u2 major, u2 minor) {
-  u2 max_version = JDK_Version::is_gte_jdk17x_version() ?
-    JAVA_MAX_SUPPORTED_VERSION : JAVA_6_VERSION;
+  u2 max_version =
+    JDK_Version::is_gte_jdk17x_version() ? JAVA_MAX_SUPPORTED_VERSION :
+    (JDK_Version::is_gte_jdk16x_version() ? JAVA_6_VERSION : JAVA_1_5_VERSION);
   return (major >= JAVA_MIN_SUPPORTED_VERSION) &&
          (major <= max_version) &&
          ((major != max_version) ||