[ 
https://issues.apache.org/jira/browse/GROOVY-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149066#comment-18149066
 ] 

Daniel Sun commented on GROOVY-3683:
------------------------------------

Fixed on master; added a regression test in 
4369d2d3dd2229b437cf5a535881dae3288d6c4d 
(https://github.com/apache/groovy/commit/4369d2d3dd2229b437cf5a535881dae3288d6c4d).

> groovyc can't joint compile a Java class that uses a delegate method from a 
> Groovy class with an @Delegate property annotation
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-3683
>                 URL: https://issues.apache.org/jira/browse/GROOVY-3683
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler, Stub generator / Joint compiler
>    Affects Versions: 1.6.4
>         Environment: OS X Leopard w/ Java JDK 1.6.0
>            Reporter: Scott Murphy
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 7.0.0-alpha-1
>
>
> {code:title=Test.groovy}
> class Test {
>   @Delegate TestDelegate test = new TestDelegate(name:"Scott")
> }
> class TestDelegate { String name }
> {code}
> {code:title=TestRun.java}
> public class TestRun {
>   public static void main(String args[]) {
>     System.out.println(new Test().getName());
>   }
> }
> {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to