summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/javassist/tools/reflect/ClassMetaobject.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/javassist/tools/reflect/ClassMetaobject.java b/src/main/javassist/tools/reflect/ClassMetaobject.java
index 04dfe27b..208d104a 100644
--- a/src/main/javassist/tools/reflect/ClassMetaobject.java
+++ b/src/main/javassist/tools/reflect/ClassMetaobject.java
@@ -73,7 +73,9 @@ public class ClassMetaobject implements Serializable {
javaClass = getClassObject(params[0]);
}
catch (ClassNotFoundException e) {
- javaClass = null;
+ throw new RuntimeException("not found: " + params[0]
+ + ", useContextClassLoader: "
+ + Boolean.toString(useContextClassLoader), e);
}
constructors = javaClass.getConstructors();