With the introduction of new packages, classes, and methods in newer versions of the Java API, we need to be more careful in ensuring that all code is compliant with the targeted Java Runtime Environment (JRE). It appears that this enforcement may have once existed as per the check-java-api Maven profile but this profile does not appear to be executed during normal builds or even at release time. For each development cycle special attention should be given to the supported Java API version and if functions from a later spec are desired to improve performance or ease of coding, reflection should be used to load the classes at run time if available and fall back to a compatible mode provided by the previous API version.
fyi ... related BZ https://bugzilla.redhat.com/show_bug.cgi?id=734140
triage loleary, asantos, crouch, mfoley ...JON 3.1
From a tip from Ian... http://blog.gvsig.org/2011/07/25/hunting-api-incompatibilities-with-the-animal-sniffer-project/
master http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=49f1a894ebace84ad814af127d767ec977732c8d Author: Lukas Krejci <lkrejci> Date: Wed Mar 14 16:58:36 2012 +0100 [BZ 797252] - Add animal-sniffer plugin to the build to ensure the Java 6 API compatibility.
master http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=da691266ca631fc4c0ddd4bb10028ac0ac25f15a Author: Lukas Krejci <lkrejci> Date: Wed Mar 14 17:32:37 2012 +0100 Reverting the previous commit. BZ 797252 needs more work. This reverts commit 49f1a894ebace84ad814af127d767ec977732c8d.
Marking this as verified, because the integration build with this change passes and there is nothing QE-testable on this bug. master http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=33d4196cc46c2195fe98af71e0353e7eeed85817 Author: Lukas Krejci <lkrejci> Date: Thu Mar 15 14:16:57 2012 +0100 [BZ 797252] - Add animal-sniffer plugin to the build to ensure the Java 6 API compatibility.
Bulk closing of old issues in VERIFIED state.