Bug 797252 - Java API version must be enforced/tested at build and/or release time
Summary: Java API version must be enforced/tested at build and/or release time
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Build System
Version: 4.3
Hardware: All
OS: All
high
high
Target Milestone: ---
: JON 3.1.0
Assignee: Lukas Krejci
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 682878 jon310-sprint11, rhq44-sprint11
TreeView+ depends on / blocked
 
Reported: 2012-02-24 17:00 UTC by Larry O'Leary
Modified: 2018-11-26 17:15 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-09-03 15:12:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 797247 0 medium CLOSED Apache plug-in should work in Java 5 or Java 6 but contains Java 6 API dependencies 2021-02-22 00:41:40 UTC

Internal Links: 797247

Description Larry O'Leary 2012-02-24 17:00:46 UTC
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.

Comment 1 Mike Foley 2012-02-24 18:33:23 UTC
fyi ... related BZ https://bugzilla.redhat.com/show_bug.cgi?id=734140

Comment 2 Mike Foley 2012-02-27 16:59:49 UTC
triage loleary, asantos, crouch, mfoley  ...JON 3.1

Comment 4 Lukas Krejci 2012-03-14 16:00:00 UTC
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.

Comment 5 Lukas Krejci 2012-03-14 16:35:29 UTC
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.

Comment 6 Lukas Krejci 2012-03-15 13:59:32 UTC
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.

Comment 7 Heiko W. Rupp 2013-09-03 15:12:24 UTC
Bulk closing of old issues in VERIFIED state.


Note You need to log in before you can comment on or make changes to this bug.