src/share/vm/classfile/classFileParser.cpp

changeset 6629
7e6c20c85ccf
parent 6626
9428a0b94204
parent 6622
d55853ba088b
child 6634
b6a2ba7d3ea7
equal deleted inserted replaced
6628:bd58c9e40d0a 6629:7e6c20c85ccf
3744 if (!is_supported_version(major_version, minor_version)) { 3744 if (!is_supported_version(major_version, minor_version)) {
3745 if (name == NULL) { 3745 if (name == NULL) {
3746 Exceptions::fthrow( 3746 Exceptions::fthrow(
3747 THREAD_AND_LOCATION, 3747 THREAD_AND_LOCATION,
3748 vmSymbols::java_lang_UnsupportedClassVersionError(), 3748 vmSymbols::java_lang_UnsupportedClassVersionError(),
3749 "Unsupported major.minor version %u.%u", 3749 "Unsupported class file version %u.%u, "
3750 "this version of the Java Runtime only recognizes class file versions up to %u.%u",
3750 major_version, 3751 major_version,
3751 minor_version); 3752 minor_version,
3753 JAVA_MAX_SUPPORTED_VERSION,
3754 JAVA_MAX_SUPPORTED_MINOR_VERSION);
3752 } else { 3755 } else {
3753 ResourceMark rm(THREAD); 3756 ResourceMark rm(THREAD);
3754 Exceptions::fthrow( 3757 Exceptions::fthrow(
3755 THREAD_AND_LOCATION, 3758 THREAD_AND_LOCATION,
3756 vmSymbols::java_lang_UnsupportedClassVersionError(), 3759 vmSymbols::java_lang_UnsupportedClassVersionError(),
3757 "%s : Unsupported major.minor version %u.%u", 3760 "%s has been compiled by a more recent version of the Java Runtime (class file version %u.%u), "
3761 "this version of the Java Runtime only recognizes class file versions up to %u.%u",
3758 name->as_C_string(), 3762 name->as_C_string(),
3759 major_version, 3763 major_version,
3760 minor_version); 3764 minor_version,
3765 JAVA_MAX_SUPPORTED_VERSION,
3766 JAVA_MAX_SUPPORTED_MINOR_VERSION);
3761 } 3767 }
3762 return nullHandle; 3768 return nullHandle;
3763 } 3769 }
3764 3770
3765 _major_version = major_version; 3771 _major_version = major_version;

mercurial