Don't check for a maximum version anymore. Sun changes it with every

release without changing the bytecode format.


git-svn-id: https://svn.code.sf.net/p/jode/code/branches/branch_1_1@1364 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
hoenicke 23 years ago
parent 111d5046ea
commit a12e86ea8f
  1. 6
      jode/ChangeLog
  2. 3
      jode/jode/bytecode/ClassInfo.java.in

@ -1,3 +1,9 @@
2002-02-25 Jochen Hoenicke <hoenicke@marge.Informatik.Uni-Oldenburg.DE>
* jode/bytecode/ClassInfo.java.in (read): Don't check for a
maximum version anymore. Sun changes it with every release without
changing the bytecode format.
2002-02-08 Jochen Hoenicke <jochen@gnu.org> 2002-02-08 Jochen Hoenicke <jochen@gnu.org>
* jode/obfuscator/ClassIdentifier.java.in (transformInnerClasses): * jode/obfuscator/ClassIdentifier.java.in (transformInnerClasses):

@ -287,8 +287,7 @@ public class ClassInfo extends BinaryInfo {
throw new ClassFormatException("Wrong magic"); throw new ClassFormatException("Wrong magic");
int version = input.readUnsignedShort(); int version = input.readUnsignedShort();
version |= input.readUnsignedShort() << 16; version |= input.readUnsignedShort() << 16;
if (version < (45 << 16 | 0) if (version < (45 << 16 | 0))
|| version > (47 << 16 | 0))
throw new ClassFormatException("Wrong class version"); throw new ClassFormatException("Wrong class version");
/* constant pool */ /* constant pool */

Loading…
Cancel
Save