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

groovyc can't joint compile a Java class that uses a delegate method from a Groovy class with an @Delegate property annotation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.4
    • None
    • None
    • OS X Leopard w/ Java JDK 1.6.0

    Description

      Test.groovy
      class Test {
        @Delegate TestDelegate test = new TestDelegate(name:"Scott")
      }
      
      class TestDelegate { String name }
      
      TestRun.java
      public class TestRun {
        public static void main(String args[]) {
          System.out.println(new Test().getName());
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sdmurphy Scott Murphy
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: