groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Heinzer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-7497) GroovyDoc reports only last method of a script
Date Wed, 08 Jul 2015 15:37:05 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Armin Heinzer updated GROOVY-7497:
----------------------------------
    Description: 
If a script contains several methods, only the last one is reported.

In the following example, the sayGoodbye() is reported by GroovyDoc but the sayHello() method
is missing:

{code}
C:\Users\ah\test>groovy -version
Groovy Version: 2.4.3 JVM: 1.8.0_40 Vendor: Oracle Corporation OS: Windows 7

C:\Users\ah\test>type testscript.groovy
sayHello()
sayGoodbye()

void sayHello() {
  println 'hello'
}

void sayGoodbye() {
  println 'goodbye'
}

C:\Users\ah\test>groovy testscript.groovy
hello
goodbye

C:\Users\ah\test>groovydoc testscript.groovy
Jul 08, 2015 5:29:10 PM java.util.prefs.WindowsPreferences <init>
WARNUNG: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002.
Windows RegCreateKeyEx(...) returned error code 5.
{code}

  was:
If a script contains several methods, only the last one is reported.

In the following example, the sayGoodbye() is reported by GroovyDoc but the sayHello() method
is missing:

{{
C:\Users\ah\test>groovy -version
Groovy Version: 2.4.3 JVM: 1.8.0_40 Vendor: Oracle Corporation OS: Windows 7

C:\Users\ah\test>type testscript.groovy
sayHello()
sayGoodbye()

void sayHello() {
  println 'hello'
}

void sayGoodbye() {
  println 'goodbye'
}

C:\Users\ah\test>groovy testscript.groovy
hello
goodbye

C:\Users\ah\test>groovydoc testscript.groovy
Jul 08, 2015 5:29:10 PM java.util.prefs.WindowsPreferences <init>
WARNUNG: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002.
Windows RegCreateKeyEx(...) returned error code 5.
}}


> GroovyDoc reports only last method of a script
> ----------------------------------------------
>
>                 Key: GROOVY-7497
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7497
>             Project: Groovy
>          Issue Type: Bug
>          Components: GroovyDoc
>    Affects Versions: 2.4.3
>         Environment: Groovy Version: 2.4.3 JVM: 1.8.0_40 Vendor: Oracle Corporation OS:
Windows 7
>            Reporter: Armin Heinzer
>
> If a script contains several methods, only the last one is reported.
> In the following example, the sayGoodbye() is reported by GroovyDoc but the sayHello()
method is missing:
> {code}
> C:\Users\ah\test>groovy -version
> Groovy Version: 2.4.3 JVM: 1.8.0_40 Vendor: Oracle Corporation OS: Windows 7
> C:\Users\ah\test>type testscript.groovy
> sayHello()
> sayGoodbye()
> void sayHello() {
>   println 'hello'
> }
> void sayGoodbye() {
>   println 'goodbye'
> }
> C:\Users\ah\test>groovy testscript.groovy
> hello
> goodbye
> C:\Users\ah\test>groovydoc testscript.groovy
> Jul 08, 2015 5:29:10 PM java.util.prefs.WindowsPreferences <init>
> WARNUNG: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002.
Windows RegCreateKeyEx(...) returned error code 5.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message