Hide Forgot
Created attachment 813291 [details] grammar file Description of problem: antlr-maven-plugin throws NullPointerException during processing of the attached grammar (labelExpr.g). This is a bug in upstream, reported in [1]. Version-Release number of selected component (if applicable): antlr-maven-plugin-2.2-11.fc21.noarch antlr-tool-2.7.7-27.fc20.noarch [1]: https://jira.codehaus.org/browse/MANTLR-34 How reproducible: 100% Steps to Reproduce: 1. copy pom.xml and labelExpr.g to the same directory 2. run "mvn -X clean antlr:generate" or "mvn-local -X clean antlr:generate" Actual results: Caused by: java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.mojo.antlr.metadata.MetadataExtracter.intrepret(MetadataExtracter.java:242) ... 25 more Expected results: antlr-maven-plugin successfully processes the grammar file and generated files are in target/generated-sources/antlr/hudson/model/labels/* Additional info: Previous version 2.1 antlr-maven-plugin works fine. Proposed patch fixes the problem for me.
Created attachment 813292 [details] POM file
Created attachment 813293 [details] proposed patch
antlr-maven-plugin-2.2-12.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/antlr-maven-plugin-2.2-12.fc19
antlr-maven-plugin-2.2-12.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/antlr-maven-plugin-2.2-12.fc20
Package antlr-maven-plugin-2.2-12.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing antlr-maven-plugin-2.2-12.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-19450/antlr-maven-plugin-2.2-12.fc19 then log in and leave karma (feedback).
antlr-maven-plugin-2.2-12.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
antlr-maven-plugin-2.2-12.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.