Bug 842583 - ecj - compile with -target 1.5 or greater
ecj - compile with -target 1.5 or greater
Product: Fedora
Classification: Fedora
Component: ecj (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jon VanAlten
Fedora Extras Quality Assurance
Depends On:
Blocks: 842394
  Show dependency treegraph
Reported: 2012-07-24 05:22 EDT by Mikolaj Izdebski
Modified: 2012-10-22 21:27 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-10-22 21:27:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mikolaj Izdebski 2012-07-24 05:22:54 EDT
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-22 21:27:05 EDT
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.