8188870: Bump classfile version number to 54

Reviewed-by: alanb, dholmes, coleenp, mcimadamore
This commit is contained in:
Paul Sandoz 2017-11-03 10:01:08 -07:00
parent 0c7be1d9e7
commit 2c9ed8e178
16 changed files with 96 additions and 48 deletions

View file

@ -86,7 +86,7 @@
#define JAVA_CLASSFILE_MAGIC 0xCAFEBABE
#define JAVA_MIN_SUPPORTED_VERSION 45
#define JAVA_MAX_SUPPORTED_VERSION 53
#define JAVA_MAX_SUPPORTED_VERSION 54
#define JAVA_MAX_SUPPORTED_MINOR_VERSION 0
// Used for two backward compatibility reasons:
@ -108,6 +108,8 @@
#define JAVA_9_VERSION 53
#define JAVA_10_VERSION 54
void ClassFileParser::set_class_bad_constant_seen(short bad_constant) {
assert((bad_constant == 19 || bad_constant == 20) && _major_version >= JAVA_9_VERSION,
"Unexpected bad constant pool entry");