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

Paul King commented on GROOVY-8224:
-----------------------------------

This is a known short-coming of the stub approach we use. Stubs are generated 
early on so that the resulting Java classes can be made available when needed 
for resolving. TraitComposer runs slightly later. The same problem occurs for 
numerous AST transformations. In general, this is hard to solve without quite a 
bit of re-engineering work but on a case-by-case basis, some of the work that 
TraitComposer and indeed some other transforms could be done earlier for 
inclusion in the stubs.

> Stubs for classes implementing traits with fields don't include 
> getters/setters
> -------------------------------------------------------------------------------
>
>                 Key: GROOVY-8224
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8224
>             Project: Groovy
>          Issue Type: Bug
>          Components: Stub generator / Joint compiler
>            Reporter: Keegan Witt
>            Priority: Major
>
> As an example, the stubs generated for _GroovyXImpl_ for the Groovy below 
> doesn't include {{int getFoo()}} or {{void setFoo(int value)}}.
> {code:java}
> trait GroovyXTrait {
>     int foo
> }
> class GroovyXImpl implements GroovyXTrait { }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to