--- a/src/hotspot/share/classfile/classFileParser.cpp Tue Apr 23 14:20:08 2019 +0530
+++ b/src/hotspot/share/classfile/classFileParser.cpp Tue Apr 23 07:05:38 2019 -0400
@@ -126,7 +126,8 @@
#define JAVA_13_VERSION 57
void ClassFileParser::set_class_bad_constant_seen(short bad_constant) {
- assert((bad_constant == 19 || bad_constant == 20) && _major_version >= JAVA_9_VERSION,
+ assert((bad_constant == JVM_CONSTANT_Module ||
+ bad_constant == JVM_CONSTANT_Package) && _major_version >= JAVA_9_VERSION,
"Unexpected bad constant pool entry");
if (_bad_constant_seen == 0) _bad_constant_seen = bad_constant;
}
@@ -343,8 +344,8 @@
}
break;
}
- case 19:
- case 20: {
+ case JVM_CONSTANT_Module:
+ case JVM_CONSTANT_Package: {
// Record that an error occurred in these two cases but keep parsing so
// that ACC_Module can be checked for in the access_flags. Need to
// throw NoClassDefFoundError in that case.