Bug 842584

Summary: eclipse - compile with -target 1.5 or greater
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: eclipseAssignee: Krzysztof Daniel <kdaniel>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: akurtako, andjrobins, jerboaa, kdaniel, mbenitez, overholt, rgrunber, swagiaal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-17 10:04:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 842394    

Description Mikolaj Izdebski 2012-07-24 09:23:01 UTC
Package eclipse appears to be using Java generics,
but generates class files in format older than 49.0,
which corresponds to J2SE 5.0, in which generics were introduced.

Please update this package to generate classes in format 49.0 or
above. This corresponds to -target 1.5 option of javac (or ecj).

For more information, see bug #842394

Comment 1 Alexander Kurtakov 2012-07-24 10:23:21 UTC
Please include the names of the jars from eclipse rpms that are failing this rule.

Comment 2 Mikolaj Izdebski 2012-07-24 11:17:43 UTC
The list of suspicious jars is:

/usr/lib64/eclipse/plugins/org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110808-1657.jar
/usr/lib64/eclipse/plugins/org.eclipse.equinox.p2.repository_2.2.0.v20120524-1945.jar
/usr/lib64/eclipse/plugins/org.eclipse.equinox.p2.ui.importexport_1.0.1.v20110818-1344.jar
/usr/lib64/eclipse/plugins/org.eclipse.equinox.p2.updatechecker_1.1.200.v20110808-1657.jar

Generated with:

for p in `zgrep '#48..$' jsr14-rawhide-2012-07-23.gz | sed -e s'/^[^#]*#//' -e 's/#.*//' -e s/.// | sort -u`; do test `repoquery --repoid rawhide --whatprovides $p --source | head -1` = eclipse-4.2.0-3.fc18.src.rpm && echo $p; done

Comment 4 Krzysztof Daniel 2013-01-17 10:04:46 UTC
This should be done for f18+ as a side effect of moving to CBI.