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 2017/05/02 02:04:19 UTC
[jira] [Closed] (GROOVY-7259) groovydoc only considers package
level fields as properties even if you have a get and set methods declared
[ https://issues.apache.org/jira/browse/GROOVY-7259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-7259.
-----------------------------
> groovydoc only considers package level fields as properties even if you have a get and set methods declared
> -----------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-7259
> URL: https://issues.apache.org/jira/browse/GROOVY-7259
> Project: Groovy
> Issue Type: Bug
> Components: GroovyDoc
> Reporter: Todd Gerspacher
> Assignee: Pascal Schumacher
> Priority: Trivial
> Fix For: 2.5.0-alpha-1
>
>
> You can declare a property in Groovy using get and set methods.
> {code:title=Klass.groovy|borderStyle=solid}
> public class Klass {
> public String getStr() {
> System.out.println("called getName( )");
> return "";
> }
> public void setStr(String str) {
> System.out.println("called setStr(String str = ${str})");
> }
> public static void main(String... args) {
> Klass klass = new Klass();
> // called setStr(String str = Salut le monde)
> klass.str = "Salut le monde";
>
> println(klass.str); // called getName( )
> }
> }
> {code}
> groovydoc, however, only considers package level fields as properties
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)