Problem druing the Test Phase build with code size exceeding
------------------------------------------------------------

                 Key: MANTLRTHREE-12
                 URL: http://jira.codehaus.org/browse/MANTLRTHREE-12
             Project: Maven 2.x Antlr3 Plugin
          Issue Type: Task
          Components: antlr
         Environment: Maven2 antlr-maven-plugin (Version 1.0)
Maven2 antlr-maven-plugin (Version 3.1.3-1)
(Windows and Unix)
            Reporter: Karl Heinz Marbaise
            Assignee: David Holroyd
            Priority: Minor


I'm using the following part in my project to generate the Lexer/Parser File 
for a Java Grammar.
                <groupId>org.codehaus.mojo</groupId>
               <artifactId>antlr3-maven-plugin</artifactId>
                                <version>1.0</version>
                                <executions>
                                        <execution>
                                                <goals>
                                                        <goal>antlr</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>

But after i updated to antlr3-maven-pugin and used the following part in my pom:
                <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>
I got the following during my site phase:

[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.

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 contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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


Reply via email to