< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page

        

*** 5973,5985 **** // Version numbers _minor_version = stream->get_u2_fast(); _major_version = stream->get_u2_fast(); ! if (DumpSharedSpaces && _major_version < JAVA_6_VERSION) { ResourceMark rm; ! warning("Pre JDK 6 class not supported by CDS: %u.%u %s", _major_version, _minor_version, _class_name->as_C_string()); Exceptions::fthrow( THREAD_AND_LOCATION, vmSymbols::java_lang_UnsupportedClassVersionError(), "Unsupported major.minor version for dump time %u.%u", --- 5973,5985 ---- // Version numbers _minor_version = stream->get_u2_fast(); _major_version = stream->get_u2_fast(); ! if (DumpSharedSpaces && _major_version < JAVA_1_5_VERSION) { ResourceMark rm; ! warning("Pre JDK 1.5 class not supported by CDS: %u.%u %s", _major_version, _minor_version, _class_name->as_C_string()); Exceptions::fthrow( THREAD_AND_LOCATION, vmSymbols::java_lang_UnsupportedClassVersionError(), "Unsupported major.minor version for dump time %u.%u",
< prev index next >