I have version 1 and version 2 of a Java-based software product. And I have access to the .JAR files and .class files.
(Note: Java customization is a legitimate technique for configuring the product. We don’t need to worry about breaking any rules when looking at the JAR files.)
I interact with the Java classes via automation scripts. I use the Jython 2.7 programming language to write Python scripts that utilize the product's Java API.
I'm aware that new Java methods have been added in version 2 that were not in version 1.
When writing my Jython scripts, it would be helpful to have a complete list of new Java methods that were added between versions. Unfortunately, a "list of new Java methods" is not included in the documentation.
Question:
In Eclipse, is there a way to compare a list of Java methods between two JAR directories/projects -- that could be used to identify Java methods that are in one, but not the other?
You can use for each of both versions Search > Search...: Java Search to get a list of all method declarations in the Search view, which you can then copy into a text file to compare them textually: in the Project Explorer or Package Explorer, select both files, right-click and choose Compare With > Each Other.
With the AnyEdit Tools plugin no files need to be created: copy the first search result into an Untitled Text File (File > New > Untitled Text File), select all (Ctrl+A) copy the second result and in the Untitled Text File right-click and choose Compare With > Clipboard.