|
|
@ -711,10 +711,11 @@ public final class ClassInfo extends BinaryInfo implements Comparable { |
|
|
|
/* header */ |
|
|
|
/* header */ |
|
|
|
if (input.readInt() != 0xcafebabe) |
|
|
|
if (input.readInt() != 0xcafebabe) |
|
|
|
throw new ClassFormatException("Wrong magic"); |
|
|
|
throw new ClassFormatException("Wrong magic"); |
|
|
|
if (input.readUnsignedShort() > 3) |
|
|
|
int version = input.readUnsignedShort(); |
|
|
|
throw new ClassFormatException("Wrong minor"); |
|
|
|
version |= input.readUnsignedShort() << 16; |
|
|
|
if (input.readUnsignedShort() != 45) |
|
|
|
if (version < (45 << 16 | 0) |
|
|
|
throw new ClassFormatException("Wrong major"); |
|
|
|
|| version > (46 << 16 | 0)) |
|
|
|
|
|
|
|
throw new ClassFormatException("Wrong class version"); |
|
|
|
|
|
|
|
|
|
|
|
/* constant pool */ |
|
|
|
/* constant pool */ |
|
|
|
ConstantPool cpool = new ConstantPool(); |
|
|
|
ConstantPool cpool = new ConstantPool(); |
|
|
|