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

groovydoc does not document type alias for property correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.6, 2.0.6
    • 1.8.9, 2.0.7, 2.1.1, 2.2.0-beta-1
    • GroovyDoc
    • None
    • 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
      package foo
      import bar.Alias as Al
      class Deriv extends Base {
      	Al.Enum alias = null
      	Snafu[] snafu = null
      }
      

      where bar.Alias.Enum is an enum type.

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

      I think this is wrong: groovydoc should show the property type

      • as either "Al.Enum" or "bar.Alias.Enum"
      • with a link to the page for bar.Alias.Enum (ie, to doc/bar/Alias.Enum.html)

      Attachments

        1. bug1.zip
          7.10 MB
          simon misys

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: