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

Ability to create static groovy methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-5
    • None
    • None

    Description

      Currently, it's only possible to create instance groovy methods.
      Such as
      file = new File("text.txt")
      file.eachLine

      { line | println it }

      But we cannot currently add static methods, such as (GROOVY-260):
      thread = Thread.start {
      process = "some long running process".execute();
      process.waitFor();
      }

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            guillaume Guillaume Sauthier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: