hotspot/src/share/vm/classfile/classFileError.cpp
changeset 46301 57f01b1bd33c
parent 34666 1c7168ea0034
equal deleted inserted replaced
46300:b8c77e61e99e 46301:57f01b1bd33c
    66   ResourceMark rm(THREAD);
    66   ResourceMark rm(THREAD);
    67   Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(),
    67   Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(),
    68                      msg, index, name, _class_name->as_C_string());
    68                      msg, index, name, _class_name->as_C_string());
    69 }
    69 }
    70 
    70 
       
    71 void ClassFileParser::classfile_parse_error(const char* msg,
       
    72                                             const char* name,
       
    73                                             const char* signature,
       
    74                                             TRAPS) const {
       
    75   assert(_class_name != NULL, "invariant");
       
    76   ResourceMark rm(THREAD);
       
    77   Exceptions::fthrow(THREAD_AND_LOCATION, vmSymbols::java_lang_ClassFormatError(),
       
    78                      msg, name, signature, _class_name->as_C_string());
       
    79 }
       
    80 
    71 PRAGMA_DIAG_POP
    81 PRAGMA_DIAG_POP
    72 
    82 
    73 void StackMapStream::stackmap_format_error(const char* msg, TRAPS) {
    83 void StackMapStream::stackmap_format_error(const char* msg, TRAPS) {
    74   ResourceMark rm(THREAD);
    84   ResourceMark rm(THREAD);
    75   Exceptions::fthrow(
    85   Exceptions::fthrow(