Class File Compare
|Class File Compare is a feature of the Dr.Garbage tool suite, which brings additional functionalities to the default eclipse compare feature:|
- Comparing Java Classes from local filesystem or java archive in Dr. Garbage structural or hexadecimal format.
- Easily naviagte between those highlighted differences.
There are two options to start comparing class files:
- Marking two class files and compare with each other: in the context menu choose Compare With... > Each Other - Class File Compare.
- Choose one class file and find another class file to compare with: by choosing one class, from the context menu, choose Other Class File instead. After that you can search for and select the class you want to compare.
The Structure Compare view
A structure merge view presents the result in a hierarchical view, and lets the user merge between the inputs.
The line numbers of the current and the incoming change will be placed in the notification section of eclipse.
The hexadecimal view
After choosing Class File Compare from the dropdown menu, you will be presented with the hexadecimal comparison version. If you select any part of the hex value, its corresponding changes and the connected line between them will be marked as black. The yellow marked area contains the boxes with grey borders on the right-hand side of the view will help you locate the differences easily.
When you reach the beginning or the end of the changes, you may receive a dialog asking what you would like to do: