You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/06/19 09:24:00 UTC
[jira] [Issue Comment Deleted] (GROOVY-8224) Stubs for classes
implementing traits with fields don't include getters/setters
[ https://issues.apache.org/jira/browse/GROOVY-8224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King updated GROOVY-8224:
------------------------------
Comment: was deleted
(was: 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)