equal
deleted
inserted
replaced
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 |