Bug 842583 - ecj - compile with -target 1.5 or greater
Summary: ecj - compile with -target 1.5 or greater
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ecj
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jon VanAlten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 842394
TreeView+ depends on / blocked
 
Reported: 2012-07-24 09:22 UTC by Mikolaj Izdebski
Modified: 2012-10-23 01:27 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-23 01:27:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikolaj Izdebski 2012-07-24 09:22:54 UTC
Package ecj 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 Jon VanAlten 2012-10-23 01:27:05 UTC
I've reviewed ecj package in detail and I believe this is a false positive.  There are two very good reasons for this false positive.  First, in the sources there are java files which use generics.  However, these are files not needed for the package and are removed during rpm build (they are never compiled; I didn't dig too deep but I believe these have mainly to do with integrating this with eclipse itself, but this package exists only to provide ecj executable separately from eclipse).  Second, in the files remaining there are quite a bit of references in the comments to generics, documenting the compiler implementation.  I find it interesting that ecj is able to compile java code with generics, without using them in its own source code.  Since this is false positive, I'm closing this bug.


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