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
master
hoenicke 23 years ago
parent d3f133999f
commit d04992725b
  1. 6
      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";

Loading…
Cancel
Save