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/branches/branch_1_1@1354 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
hoenicke 23 years ago
parent ea5e834abe
commit 068e85a76d
  1. 6
      jode/javaDependencies.pl.in

@ -82,11 +82,11 @@ foreach $clazz (@ARGV) {
binmode FILE; binmode FILE;
readInBuff 8 or die "Can't read header"; 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 magic $magic" if $magic != 0xcafebabe;
die "Wrong minor $minor" if $minor > 3; die "Wrong major $major" if $major != 3;
die "Wrong minor $major" if $major != 45; die "Wrong minor $minor" if $minor < 45;
readInBuff 2 or die "Can't read cpool length"; readInBuff 2 or die "Can't read cpool length";

Loading…
Cancel
Save