aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClassType.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/CtClassType.java')
-rw-r--r--src/main/javassist/CtClassType.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/javassist/CtClassType.java b/src/main/javassist/CtClassType.java
index 46fb268a..92f73d3e 100644
--- a/src/main/javassist/CtClassType.java
+++ b/src/main/javassist/CtClassType.java
@@ -193,8 +193,9 @@ class CtClassType extends CtClass {
fin = new BufferedInputStream(fin);
classfile = new ClassFile(new DataInputStream(fin));
if (!classfile.getName().equals(qualifiedName))
- throw new RuntimeException(classfile.getName() + " in "
- + qualifiedName.replace('.', '/') + ".java");
+ throw new RuntimeException("cannot find " + qualifiedName + ": "
+ + classfile.getName() + " found in "
+ + qualifiedName.replace('.', '/') + ".class");
return classfile;
}