aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtClassType.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-11-22 16:51:12 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-11-22 16:51:12 +0000
commitecb71c75155bdd2990141314db777348fdf313ff (patch)
treed45c70c481bf274e87dd9ecbbc41670e51e080ef /src/main/javassist/CtClassType.java
parenta1419a5df6a881f26d3eedacb37d9ea616764cf0 (diff)
downloadjavassist-ecb71c75155bdd2990141314db777348fdf313ff.tar.gz
javassist-ecb71c75155bdd2990141314db777348fdf313ff.zip
added some methods to javassist.Bytecode and Descriptor.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@225 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
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;
}