From 375a002248191b1beaa3c90d66b11385b27688c6 Mon Sep 17 00:00:00 2001 From: hoenicke Date: Mon, 25 Feb 2002 16:13:27 +0000 Subject: [PATCH] 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 --- jode/ChangeLog | 6 ++++++ jode/src/net/sf/jode/bytecode/ClassInfo.java | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 */