equal
deleted
inserted
replaced
520 // |
520 // |
521 // Note that the NoClassDefFoundError is not part of the JLS, and should not be thrown |
521 // Note that the NoClassDefFoundError is not part of the JLS, and should not be thrown |
522 // if we are executing Java code. This is not a problem for CDS dumping phase since |
522 // if we are executing Java code. This is not a problem for CDS dumping phase since |
523 // it doesn't execute any Java code. |
523 // it doesn't execute any Java code. |
524 ResourceMark rm(THREAD); |
524 ResourceMark rm(THREAD); |
525 THROW_MSG_(vmSymbols::java_lang_NoClassDefFoundError(), external_name(), false); |
525 Exceptions::fthrow(THREAD_AND_LOCATION, |
|
526 vmSymbols::java_lang_NoClassDefFoundError(), |
|
527 "Class %s, or one of its supertypes, failed class initialization", |
|
528 external_name()); |
|
529 return false; |
526 } |
530 } |
527 // return if already verified |
531 // return if already verified |
528 if (is_linked()) { |
532 if (is_linked()) { |
529 return true; |
533 return true; |
530 } |
534 } |