Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7497

GroovyDoc reports only last method of a script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 2.4.8
    • GroovyDoc
    • None
    • Groovy Version: 2.4.3 JVM: 1.8.0_40 Vendor: Oracle Corporation OS: Windows 7

    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:

      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.
      

      Screenshot of GroovyDoc, see https://www.dropbox.com/s/1jhko1yz9tw5hc6/groovydoc-screenshot.png?dl=0

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              armin.heinzer Armin Heinzer
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: