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

decide upon Java-like initializers

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-6
    • JSR / TCK / GLS
    • None

    Description

      Java knows static initializers like

      public class MyClass {
      static String myField;
      static

      { myField = new java.util.Date().toGMTString(); }
      }

      and object initializers like

      public class MyClass {
      String myField;
      { myField = new java.util.Date().toGMTString(); }

      }

      do we want to have them in Groovy as well?

      Attachments

        Activity

          People

            Unassigned Unassigned
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: