[ 
https://issues.apache.org/jira/browse/GROOVY-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-477:
-------------------------------
    Labels: ClassFormatError  (was: )

> ClassFormatError with Groovy Beta 5 and JDK 1.5 Beta 1
> ------------------------------------------------------
>
>                 Key: GROOVY-477
>                 URL: https://issues.apache.org/jira/browse/GROOVY-477
>             Project: Groovy
>          Issue Type: Bug
>          Components: class generator
>    Affects Versions: 1.0-beta-5
>         Environment: JDK 1.5 Beta 1, Windows XP
>            Reporter: Clint Combs
>            Assignee: Dr. Russel Winder
>            Priority: Minor
>              Labels: ClassFormatError
>             Fix For: 1.0-beta-9
>
>
> Running the following:
> ----------------------
> class gtest3 {
>     static main(args) {
>         println "hello"
>     }
> }
> I get the following ClassFormatError:
> -------------------------------------
> Exception in thread "main" java.lang.ClassFormatError: Invalid index 3 in 
> LocalV
> ariableTable in class file gtest3
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:604)
>         at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
> 3)
>         at groovy.lang.GroovyClassLoader.access$100(GroovyClassLoader.java:78)
>         at 
> groovy.lang.GroovyClassLoader$ClassCollector.onClassNode(GroovyClassL
> oader.java:440)
>         at 
> groovy.lang.GroovyClassLoader$ClassCollector.call(GroovyClassLoader.j
> ava:450)
>         at 
> org.codehaus.groovy.control.CompilationUnit$5.call(CompilationUnit.ja
> va:666)
>         at 
> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(
> CompilationUnit.java:922)
>         at 
> org.codehaus.groovy.control.CompilationUnit.classgen(CompilationUnit.
> java:586)
>         at 
> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.j
> ava:480)
>         at 
> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:228)
>         at 
> groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:154)
>         at groovy.lang.GroovyShell$2.run(GroovyShell.java:207)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at groovy.lang.GroovyShell.run(GroovyShell.java:205)
>         at groovy.lang.GroovyShell.main(GroovyShell.java:92)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:494)
>         at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:410)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:344)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:474)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to