From a12e86ea8fbaa29edf3d01d7b3f9bd3dbd83c13c Mon Sep 17 00:00:00 2001 From: hoenicke Date: Mon, 25 Feb 2002 16:02:26 +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/branches/branch_1_1@1364 379699f6-c40d-0410-875b-85095c16579e --- jode/ChangeLog | 6 ++++++ jode/jode/bytecode/ClassInfo.java.in | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/jode/ChangeLog b/jode/ChangeLog index 43fd2e2..0193368 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-08 Jochen Hoenicke * jode/obfuscator/ClassIdentifier.java.in (transformInnerClasses): diff --git a/jode/jode/bytecode/ClassInfo.java.in b/jode/jode/bytecode/ClassInfo.java.in index 687bf94..8494611 100644 --- a/jode/jode/bytecode/ClassInfo.java.in +++ b/jode/jode/bytecode/ClassInfo.java.in @@ -287,8 +287,7 @@ public class ClassInfo extends BinaryInfo { 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 */