javamavenbuild-automationbuild-dependencies

Java code change analysis tool - e.g tell me if a method signature has changed, method implementation


Is there any diff tool specifically for Java that doesn't just highlight differences in a file, but is more complex?

By more complex I mean it'd take 2 input files, the same class file of different versions, and tell me things like:

Done some Googling and can't find anything like this...I figure it could be useful in determining whether or not changes to dependencies would require a rebuild of a particular module.

Thanks in advance

Edit:

I suppose I should clarify:

I'm not bothered about a GUI for the tool, it'd be something I'm interested in calling programmatically.

And as for my reasoning:


Solution

  • You said above that Clirr is what you're looking for.

    But for others with slightly differet needs, I'd like to recommend JDiff. Both have pros and cons, but for my needs I ended up using JDiff. I don't think it'll satisfy your last bullet point and it's difficult to call programmatically. What it does do is generate a useful report for API differences.