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

Can't generate bytecode for void return

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-5
    • class generator
    • None

    Description

      class VoidReturnTest { public void test()

      { return }

      }

      results in:

      Caught: org.codehaus.groovy.classgen.ClassGeneratorException: Cannot generate bytecode for constant: class java.lang.Void of type: java.lang.Class

      Attachments

        Issue Links

          Activity

            People

              jstrachan James Strachan
              jamiemc Jamie McCrindle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: