I'm writing a tool which is supposed to determine what classes have changed when a system is upgraded. What i have as input are: 1 - the jar file used with the pre-upgraded system 2 - the jar file used with the post-upgraded system 3 - a list of classes and their purpose that I care about asset init package1.myasset.class asset terminate package1.assetterminate.class etc.
What I want to do is be able to load the jar that comes with the new system and the jar that came with the old system and determine if a given class has the same parent after the change that it did before the change. i.e. if in the new system asset init 1 - is still package1.myasset.class and 2 - is still an extension of package0.generalasset.class
I assume I can use reflection but I'm not sure how to determine what a given classes parent is in each jar to see if it changed.
The jars are not necessarily used directly (runtime) by my tool - in fact they shouldn't really be used except as an input to the analysis of the system change.