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

cleaner alternative to using static void main()

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-6
    • None
    • None

    Description

      Maybe we should auto-create a static main method for any object that has a String[] constructor and implements the Runnable interface?

      e.g.

      public class Foo implements Runnable {
      public Foo(String[] args)

      { ... }

      public void run()

      { .... }

      }

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: