hotspot/src/share/vm/oops/generateOopMap.cpp
changeset 6176 4d9030fe341f
parent 5702 201c5cde25bb
child 7111 ac1a0346bc0f
--- a/hotspot/src/share/vm/oops/generateOopMap.cpp	Wed Jul 28 17:57:43 2010 -0400
+++ b/hotspot/src/share/vm/oops/generateOopMap.cpp	Tue Aug 03 08:13:38 2010 -0400
@@ -2111,7 +2111,13 @@
   // We do not distinguish between different types of errors for verification
   // errors.  Let the verifier give a better message.
   const char *msg = "Illegal class file encountered. Try running with -Xverify:all";
-  error_work(msg, NULL);
+  _got_error = true;
+  // Append method name
+  char msg_buffer2[512];
+  jio_snprintf(msg_buffer2, sizeof(msg_buffer2), "%s in method %s", msg,
+               method()->name()->as_C_string());
+  _exception = Exceptions::new_exception(Thread::current(),
+                vmSymbols::java_lang_LinkageError(), msg_buffer2);
 }
 
 //