summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-06-02 14:18:21 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2007-06-02 14:18:21 +0000
commit43af89caa275539ac3f898d10bbffaed349ea861 (patch)
treee0f50600320a23ab1d2f931c3bcfa84da41b36e7
parentb8445cabacd7ab2a9c04bc5936583060f35ef505 (diff)
downloadjavassist-43af89caa275539ac3f898d10bbffaed349ea861.tar.gz
javassist-43af89caa275539ac3f898d10bbffaed349ea861.zip
for JIRA JASSIST-34
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@379 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r--src/main/javassist/bytecode/ClassFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java
index 73cdc6ec..ab00734f 100644
--- a/src/main/javassist/bytecode/ClassFile.java
+++ b/src/main/javassist/bytecode/ClassFile.java
@@ -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();