src/share/vm/classfile/classFileParser.cpp

Print this page

        

*** 3744,3765 **** if (!is_supported_version(major_version, minor_version)) { if (name == NULL) { Exceptions::fthrow( THREAD_AND_LOCATION, vmSymbols::java_lang_UnsupportedClassVersionError(), ! "Unsupported major.minor version %u.%u", major_version, ! minor_version); } else { ResourceMark rm(THREAD); Exceptions::fthrow( THREAD_AND_LOCATION, vmSymbols::java_lang_UnsupportedClassVersionError(), ! "%s : Unsupported major.minor version %u.%u", name->as_C_string(), major_version, ! minor_version); } return nullHandle; } _major_version = major_version; --- 3744,3769 ---- if (!is_supported_version(major_version, minor_version)) { if (name == NULL) { Exceptions::fthrow( THREAD_AND_LOCATION, vmSymbols::java_lang_UnsupportedClassVersionError(), ! "Unsupported class file version %u.%u, this Java version only recognizes class file versions up to %u.%u", major_version, ! minor_version, ! JAVA_MAX_SUPPORTED_VERSION, ! JAVA_MAX_SUPPORTED_MINOR_VERSION); } else { ResourceMark rm(THREAD); Exceptions::fthrow( THREAD_AND_LOCATION, vmSymbols::java_lang_UnsupportedClassVersionError(), ! "%s has been compiled by a more recent Java version (class file version %u.%u), this Java version only recognizes class file versions up to %u.%u", name->as_C_string(), major_version, ! minor_version, ! JAVA_MAX_SUPPORTED_VERSION, ! JAVA_MAX_SUPPORTED_MINOR_VERSION); } return nullHandle; } _major_version = major_version;