From d04992725b773d55e23b5bfc899b3863a12afbab Mon Sep 17 00:00:00 2001 From: hoenicke Date: Mon, 19 Nov 2001 14:36:47 +0000 Subject: [PATCH] Fixed major/minor naming. Allow minor to be bigger than 45 for newer java versions. git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1354 379699f6-c40d-0410-875b-85095c16579e --- jode/scripts/javaDependencies.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jode/scripts/javaDependencies.pl b/jode/scripts/javaDependencies.pl index 06d5436..e92f592 100755 --- a/jode/scripts/javaDependencies.pl +++ b/jode/scripts/javaDependencies.pl @@ -82,11 +82,11 @@ foreach $clazz (@ARGV) { binmode FILE; readInBuff 8 or die "Can't read header"; - my ($magic, $minor, $major) = unpack("Nnn", $buff); + my ($magic, $major, $minor) = unpack("Nnn", $buff); die "Wrong magic $magic" if $magic != 0xcafebabe; - die "Wrong minor $minor" if $minor > 3; - die "Wrong minor $major" if $major != 45; + die "Wrong major $major" if $major != 3; + die "Wrong minor $minor" if $minor < 45; readInBuff 2 or die "Can't read cpool length";