]> source.dussan.org Git - javassist.git/commitdiff
fixed JASSIST-45 (better exception message)
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 19 Mar 2008 12:59:36 +0000 (12:59 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 19 Mar 2008 12:59:36 +0000 (12:59 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@427 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/runtime/Desc.java

index 8bf1ce989f464e488317e9cc37ac026e03fe5fa3..fa86a744b3cf1adca7c08f86e71da04a5d50f7be 100644 (file)
@@ -52,7 +52,10 @@ public class Desc {
             return getClassObject(name);
         }
         catch (ClassNotFoundException e) {
-            throw new RuntimeException("$class: internal error");
+            throw new RuntimeException(
+                    "$class: internal error, could not find class '" + name 
+                    + "' (Desc.useContextClassLoader: " 
+                    + Boolean.toString(useContextClassLoader) + ")", e); 
         }
     }