]> source.dussan.org Git - javassist.git/commitdiff
for JIRA JASSIST-34
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 2 Jun 2007 14:18:21 +0000 (14:18 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Sat, 2 Jun 2007 14:18:21 +0000 (14:18 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@379 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/bytecode/ClassFile.java

index 73cdc6ec5add579007091a80628947531601ae7c..ab00734f0cc76dad2b1b2f70ee130b0e60c43faf 100644 (file)
@@ -676,7 +676,7 @@ public final class ClassFile {
         int i, n;
         int magic = in.readInt();
         if (magic != 0xCAFEBABE)
-            throw new IOException("non class file");
+            throw new IOException("bad magic number: " + Integer.toHexString(magic));
 
         minor = in.readUnsignedShort();
         major = in.readUnsignedShort();