From: chiba Date: Wed, 19 Mar 2008 12:59:36 +0000 (+0000) Subject: fixed JASSIST-45 (better exception message) X-Git-Tag: rel_3_17_1_ga~216 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3fa7e4cc83e834e3ff6f436861c6a47173ae323;p=javassist.git fixed JASSIST-45 (better exception message) git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@427 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/runtime/Desc.java b/src/main/javassist/runtime/Desc.java index 8bf1ce98..fa86a744 100644 --- a/src/main/javassist/runtime/Desc.java +++ b/src/main/javassist/runtime/Desc.java @@ -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); } }