mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8261090: Store old classfiles in static CDS archive
Reviewed-by: iklam, minqi
This commit is contained in:
parent
159f5e1ede
commit
9499175064
29 changed files with 895 additions and 42 deletions
|
@ -5920,18 +5920,6 @@ void ClassFileParser::parse_stream(const ClassFileStream* const stream,
|
|||
_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",
|
||||
_major_version,
|
||||
_minor_version);
|
||||
}
|
||||
|
||||
// Check version numbers - we check this even with verifier off
|
||||
verify_class_version(_major_version, _minor_version, _class_name, CHECK);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue