From d3fa7e4cc83e834e3ff6f436861c6a47173ae323 Mon Sep 17 00:00:00 2001 From: chiba Date: Wed, 19 Mar 2008 12:59:36 +0000 Subject: [PATCH] fixed JASSIST-45 (better exception message) git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@427 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/runtime/Desc.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- 2.39.5