![]() |
|
|
|
|
Change By:
|
Robert Scholte
(12/Jul/12 12:49 PM)
|
|
Description:
|
I'm using the following part in my project to generate the Lexer/Parser File for a Java Grammar.
{code:xml}
<groupId>org.codehaus.mojo</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<goals>
<goal>antlr</goal>
</goals>
</execution>
</executions>
</plugin>
{code}
But after i updated to
{{
antlr3-maven-pugin
}}
and used the following part in my pom:
{code:xml}
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
<version>3.1.3-1</version>
<configuration>
<sourceDirectory>src/main/antlr/grammars</sourceDirectory>
<outputDirectory>target/generated-sources/antlr/grammars</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>antlr</goal>
</goals>
</execution>
</executions>
</plugin>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>3.1.3</version>
</dependency>
{code}
I got the following during my site phase:
{noformat}
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: C:\ws\supose\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
org.apache.maven.surefire.booter.SurefireExecutionException: Invalid method Code length 69055 in class file com/soebes/supose/parse/
java/JavaParser; nested exception is java.lang.ClassFormatError: Invalid method Code length 69055 in class file com/soebes/supose/pa
rse/java/JavaParser
java.lang.ClassFormatError: Invalid method Code length 69055 in class file com/soebes/supose/parse/java/JavaParser
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.testng.internal.ClassHelper.forName(ClassHelper.java:74)
at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:52)
at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:76)
at org.testng.TestRunner.initMethods(TestRunner.java:281)
at org.testng.TestRunner.init(TestRunner.java:227)
at org.testng.TestRunner.init(TestRunner.java:189)
at org.testng.TestRunner.<init>(TestRunner.java:138)
at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:477)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:244)
at org.testng.SuiteRunner.run(SuiteRunner.java:198)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:821)
at org.testng.TestNG.runSuitesLocally(TestNG.java:788)
at org.testng.TestNG.run(TestNG.java:708)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
[ERROR] There are test failures.
{noformat}
It seemed to me that the update has changed the resulting code size of the grammar....I'm not sure if it corrected assigned here or might be better put to the ANTLR site ?
The full POM's can be looked at http://www.supose.org/repositories/entry/supose/trunk/pom.xml?rev=330 and
http://www.supose.org/repositories/entry/supose/trunk/pom.xml?rev=329 to see how it produces an error.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email