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/trunk@1365 379699f6-c40d-0410-875b-85095c16579e
master
hoenicke 23 years ago
parent b33f6d1045
commit 375a002248
  1. 6
      jode/ChangeLog
  2. 3
      jode/src/net/sf/jode/bytecode/ClassInfo.java

@ -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-15 Jochen Hoenicke <jochen@gnu.org>
* net/sf/jode/bytecode/BasicBlockReader.java: handle empty loops.

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

Loading…
Cancel
Save