Mercurial > hg > graal-compiler
comparison src/share/vm/classfile/classFileParser.cpp @ 14335:4802ce6fbff6
8016644: Improve UnsupportedClassVersionError message
Summary: Improved the UnsupportedClassVersionError message to hopefully be more user friendly
Reviewed-by: coleenp, dholmes, twisti
author | ctornqvi |
---|---|
date | Mon, 10 Feb 2014 17:49:17 +0100 |
parents | 2e7b5143763f |
children | d8041d695d19 |
comparison
equal
deleted
inserted
replaced
14334:0e5d1eefe3af | 14335:4802ce6fbff6 |
---|---|
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; |