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

Groovy annotations that support closures don't get stubs generated correctly

    XMLWordPrintableJSON

Details

    Description

      This:

      @Target(ElementType.TYPE)
      @Retention(RetentionPolicy.RUNTIME)
      @interface Get {
      	Class value() default {return true}
      }
      

      Generates:

      @java.lang.annotation.Target(value=java.lang.annotation.ElementType.TYPE) @java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface Get
       {
       java.lang.Class value() default { -> ... }.class;
      }
      

      Attachments

        Activity

          People

            paulk Paul King
            rvowles Richard Vowles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: