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

Creating class with run() method in groovysh can produce error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-1
    • 1.0
    • None
    • None

    Description

      Starting groovysh and typing the following:

      class A {
      void run()

      { println "A run" }

      }
      go

      produces:

      Exception: No signature of method A.main() is applicable for argument types: ([Ljava.lang.String values: [[]]

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            mcspanky Martin C. Martin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: