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

groovydoc does not document array property correctly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.6, 2.0.6
    • Fix Version/s: 1.8.9, 2.0.7, 2.1.1, 2.2.0-beta-1
    • Component/s: GroovyDoc
    • Labels:
      None
    • Environment:
      Win7 64bit

      Description

      Attachment bug1.zip contains 2 groovy projects ("foo" and "bar") plus an ant project (under folder "ant") to perform the groovydoc. I've tried groovydoc by:

      • running "ant" in the "ant" folder (I used apache-ant-1.8.4)
      • running "build.xml" as an Ant Build in eclipse (I used juno-4.2)
        The documentation is written to the folder "doc". I used "ant" for the attachment version.

      The build.xml copies the groovy files to a separate folder before invoking groovydoc. AFAICS this makes no difference to this problem - I get the same if I direct groovydoc to use the groovy files in their project folders.

      Class foo.Deriv is defined like this:

      foo.Deriv.groovy
      class Deriv extends Base {
      	Al.Enum alias = null
      	Snafu[] snafu = null
      }
      

      where foo.Snafu is another class.

      The page for foo.Deriv (doc/foo/Deriv.html) shows the property "snafu" has type "Snafu".

      I think this is wrong: groovydoc should distinguish the property as an array by using [] after the type name "Snafu".

        Attachments

        1. bug1.zip
          7.10 MB
          simon misys

          Activity

            People

            • Assignee:
              asteingress Andre Steingress
              Reporter:
              marshals simon misys
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: