Red Hat Bugzilla – Bug 842572
antlr3 - compile with -target 1.5 or greater
Last modified: 2012-09-11 20:25:57 EDT
Package antlr3 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
Ehm -- I have added -Dmaven.compile.target=1.5 to the maven build, how can one check that everything got compiled properly? You can have a look at:
Also, does this concern only rawhide/F19, or also F18?
You can check the version of classes using javap command.
antlr3-3.4-10.fc19 still contains classes in format 48.0
> $ javap -classpath usr/share/java/antlr3-runtime.jar org/antlr/runtime/BaseRecognizer -verbose | head -5
> Compiled from "BaseRecognizer.java"
> public abstract class org.antlr.runtime.BaseRecognizer extends java.lang.Object
> SourceFile: "BaseRecognizer.java"
> minor version: 0
> major version: 48
As this may be a serious bug, F18 update would be appreciated too.
Thanks for the hint with javap. I think I have definitely solved the issue, now everything is compiled for 1.6.
I've built antlr3-3.4-11 in fc19 and fc18, now reading again the blocker bug, can you confirm F17 is fine or should there rather be an update released as well?
> I've built antlr3-3.4-11 in fc19 and fc18, now reading again the blocker
> bug, can you confirm F17 is fine or should there rather be an update
> released as well?
Thank you for the fix. I am happy with F18+ only.
But F17 has Java 7 as well, so it might affected, or not?
> But F17 has Java 7 as well, so it might affected, or not?
I don't know it is affected or not, you can check it with javap.
It's up to you if you think this is worth a F17 update.
I only needed this fixed in F18 and rawhide.
antlr3-3.4-11.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing antlr3-3.4-11.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
antlr3-3.4-11.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.