You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/01/15 21:42:39 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15102439#comment-15102439 ]
ASF GitHub Bot commented on GROOVY-7259:
----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/groovy/pull/3
> 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
> Priority: Trivial
>
> 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.4#6332)