I am currently trying to rebuild an old application from a tag and unfortunately I get jar files containing "non binary equals" .class files.
I've tried to compare the decompiled version of these .class files and they seem to be equals but is there a secure and automated way to diagnose such .class equality ?
It's important for me to know if my generated jars are equal to the old ones, even if the .class files inside are not binary equals, but functionally equals (certainly due to a different javac version).
Thx
PS.
- Both are compiled with the same major version (
Major: 52
) - If I compare the output of "old" and "new" using
javap -c
command I have no differences - If I compare the output using
javap -v
command I find a few lines shift (eg: #480 in old becomes #478 in new for the same instruction) and some missing errors declarations (eg:365 = Utf8 Lorg/eclipse/ui/PartInitException;
only in old)