Groovy
  1. Groovy
  2. GROOVY-4180

groovydoc appears to be broken with java.util.NoSuchElementException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.7.3, 1.8-beta-1
    • Component/s: GroovyDoc
    • Labels:
      None

      Description

      groovydoc in grails 1.3 (groovy 1.7.2) applications is broken with the following error occuring:

      java.util.NoSuchElementException
      	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)
      	at java.util.HashMap$EntryIterator.next(HashMap.java:834)
      	at java.util.HashMap$EntryIterator.next(HashMap.java:832)
      	at org.codehaus.groovy.tools.groovydoc.GroovyRootDocBuilder.processFile(GroovyRootDocBuilder.java:209)
      	at org.codehaus.groovy.tools.groovydoc.GroovyRootDocBuilder.buildTree(GroovyRootDocBuilder.java:163)
      	at org.codehaus.groovy.tools.groovydoc.GroovyDocTool.add(GroovyDocTool.java:65)
      	at org.codehaus.groovy.ant.Groovydoc.execute(Groovydoc.java:391)
      	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      	at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at 
      

        Activity

        Hide
        Paul King added a comment -

        The exception should no longer be thrown. The exception was only occurring when trying to create GroovyDoc for a script. An interesting question is what defaults we might consider/could support for
        Groovydoc for scripts - at the moment, they are ignored.

        Show
        Paul King added a comment - The exception should no longer be thrown. The exception was only occurring when trying to create GroovyDoc for a script. An interesting question is what defaults we might consider/could support for Groovydoc for scripts - at the moment, they are ignored.
        Hide
        Graeme Rocher added a comment -

        Should the issue be closed then?

        Show
        Graeme Rocher added a comment - Should the issue be closed then?
        Hide
        Paul King added a comment -

        Yes, issue is resolved. There is now also partial GroovyDoc support for Scripts (method JavaDoc only). It would be great if this could be tested against the Grails codebase.

        Show
        Paul King added a comment - Yes, issue is resolved. There is now also partial GroovyDoc support for Scripts (method JavaDoc only). It would be great if this could be tested against the Grails codebase.

          People

          • Assignee:
            Paul King
            Reporter:
            Graeme Rocher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development