Tool for checking source for dependencies on specific Java versions

Posted by Gregor on Stack Overflow See other posts from Stack Overflow or by Gregor
Published on 2010-06-11T17:41:47Z Indexed on 2010/06/11 17:42 UTC
Read the original article Hit count: 252

Is there a quick way (e.g. tool) to detect, from the source (or maybe even from compiled classes), which parts of an application call Java API methods that are only implemented in a specific Java version? (e.g. which parts of my app are Java6-specific)

I don't necessarily want to hop through all ClassMismatchErrors and avoid the trial-and-error-method. Let's say I only want to document which parts of an application won't work if they were writte for, e.g., Java6 and I want to run it in a version 5 JDK.

Is there something like this? Google did not help this time, nor did I find any solution here (a rare case indeed:)

© Stack Overflow or respective owner

Related posts about java

Related posts about version