1.1 --- a/src/share/vm/classfile/classFileParser.cpp Mon Mar 03 13:58:52 2014 -0500 1.2 +++ b/src/share/vm/classfile/classFileParser.cpp Wed Apr 16 18:40:25 2014 -0400 1.3 @@ -3746,18 +3746,24 @@ 1.4 Exceptions::fthrow( 1.5 THREAD_AND_LOCATION, 1.6 vmSymbols::java_lang_UnsupportedClassVersionError(), 1.7 - "Unsupported major.minor version %u.%u", 1.8 + "Unsupported class file version %u.%u, " 1.9 + "this version of the Java Runtime only recognizes class file versions up to %u.%u", 1.10 major_version, 1.11 - minor_version); 1.12 + minor_version, 1.13 + JAVA_MAX_SUPPORTED_VERSION, 1.14 + JAVA_MAX_SUPPORTED_MINOR_VERSION); 1.15 } else { 1.16 ResourceMark rm(THREAD); 1.17 Exceptions::fthrow( 1.18 THREAD_AND_LOCATION, 1.19 vmSymbols::java_lang_UnsupportedClassVersionError(), 1.20 - "%s : Unsupported major.minor version %u.%u", 1.21 + "%s has been compiled by a more recent version of the Java Runtime (class file version %u.%u), " 1.22 + "this version of the Java Runtime only recognizes class file versions up to %u.%u", 1.23 name->as_C_string(), 1.24 major_version, 1.25 - minor_version); 1.26 + minor_version, 1.27 + JAVA_MAX_SUPPORTED_VERSION, 1.28 + JAVA_MAX_SUPPORTED_MINOR_VERSION); 1.29 } 1.30 return nullHandle; 1.31 }