diff --git a/jode/ChangeLog b/jode/ChangeLog index aecd9a1..e1fb9e7 100644 --- a/jode/ChangeLog +++ b/jode/ChangeLog @@ -1,3 +1,9 @@ +2002-02-25 Jochen Hoenicke + + * 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 * net/sf/jode/bytecode/BasicBlockReader.java: handle empty loops. diff --git a/jode/src/net/sf/jode/bytecode/ClassInfo.java b/jode/src/net/sf/jode/bytecode/ClassInfo.java index 6f9b296..78de6fd 100644 --- a/jode/src/net/sf/jode/bytecode/ClassInfo.java +++ b/jode/src/net/sf/jode/bytecode/ClassInfo.java @@ -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 */