In my coding environment I am normally working with the latest versions of Java and Eclipse. When I wrote source code I do not pay attention whether the API methods or classes I use are backward compatible to older version of Java or Eclipse. In the javadoc there exists the @since parameter that is set to the version number where a feature was newly introduced. So sometimes I check by hand, whether I use methods or classes which were introduced lately and try to replace them to stay backward compatible.
Is there any way to automatically check whether a Java program or Eclipse plugin will work with older version of Java or Eclipse?
I will make my question more precise: I am interested in a solution for which I need not install older version of Java or Eclipse. Maybe there is a tool, which checks for the javadoc comments and tell me when I use a method which is only available in a version greater than a predefined version number. I am aware of the fact that this method is not 1oo% reliable if the javadoc is not up to date.