hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 46431 87b0d1afe03e
parent 46408 70aab0c2ea8b
child 46444 677be3444372
equal deleted inserted replaced
46429:be60dbbce2ec 46431:87b0d1afe03e
   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   }