Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-477

ClassFormatError with Groovy Beta 5 and JDK 1.5 Beta 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-5
    • 1.0-beta-9
    • class generator
    • JDK 1.5 Beta 1, Windows XP

    Description

      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)

      Attachments

        Activity

          People

            russel Dr. Russel Winder
            clintcombs Clint Combs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: