hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 33105 294e48b4f704
parent 32824 3b686e54dece
child 33207 edc4431940b2
child 33198 b37ad9fbf681
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
   317 
   317 
   318 PRAGMA_DIAG_PUSH
   318 PRAGMA_DIAG_PUSH
   319 PRAGMA_FORMAT_NONLITERAL_IGNORED
   319 PRAGMA_FORMAT_NONLITERAL_IGNORED
   320 void ClassFileParser::report_assert_property_failure(const char* msg, TRAPS) {
   320 void ClassFileParser::report_assert_property_failure(const char* msg, TRAPS) {
   321   ResourceMark rm(THREAD);
   321   ResourceMark rm(THREAD);
   322   fatal(err_msg(msg, _class_name->as_C_string()));
   322   fatal(msg, _class_name->as_C_string());
   323 }
   323 }
   324 
   324 
   325 void ClassFileParser::report_assert_property_failure(const char* msg, int index, TRAPS) {
   325 void ClassFileParser::report_assert_property_failure(const char* msg, int index, TRAPS) {
   326   ResourceMark rm(THREAD);
   326   ResourceMark rm(THREAD);
   327   fatal(err_msg(msg, index, _class_name->as_C_string()));
   327   fatal(msg, index, _class_name->as_C_string());
   328 }
   328 }
   329 PRAGMA_DIAG_POP
   329 PRAGMA_DIAG_POP
   330 
   330 
   331 constantPoolHandle ClassFileParser::parse_constant_pool(TRAPS) {
   331 constantPoolHandle ClassFileParser::parse_constant_pool(TRAPS) {
   332   ClassFileStream* cfs = stream();
   332   ClassFileStream* cfs = stream();
   490                          CHECK_(nullHandle));
   490                          CHECK_(nullHandle));
   491           // bootstrap specifier index must be checked later, when BootstrapMethods attr is available
   491           // bootstrap specifier index must be checked later, when BootstrapMethods attr is available
   492           break;
   492           break;
   493         }
   493         }
   494       default:
   494       default:
   495         fatal(err_msg("bad constant pool tag value %u",
   495         fatal("bad constant pool tag value %u", cp->tag_at(index).value());
   496                       cp->tag_at(index).value()));
       
   497         ShouldNotReachHere();
   496         ShouldNotReachHere();
   498         break;
   497         break;
   499     } // end of switch
   498     } // end of switch
   500   } // end of for
   499   } // end of for
   501 
   500