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

Incorrect stubs for enums without constants

    XMLWordPrintableJSON

Details

    Description

      Generated stub for empty enum class misses ';' at the beginning of the class.

      enum E {
      }
      
      public enum E
        implements
          groovy.lang.GroovyObject {
      //here should be ';'
      public static final p.A.E MIN_VALUE = null;
      public static final p.A.E MAX_VALUE = null;
      public  groovy.lang.MetaClass getMetaClass() { return (groovy.lang.MetaClass)null;}
      public  void setMetaClass(groovy.lang.MetaClass mc) { }
      public  java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments) { return null;}
      public  java.lang.Object getProperty(java.lang.String property) { return null;}
      public  void setProperty(java.lang.String property, java.lang.Object value) { }
      public  p.A.E next() { return (p.A.E)null;}
      public  p.A.E previous() { return (p.A.E)null;}
      public static final  p.A.E $INIT(java.lang.Object... para) { return (p.A.E)null;}
      }
      
      

      Attachments

        Activity

          People

            paulk Paul King
            mxm-groovy Maxim Medvedev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: