Groovy
  1. Groovy
  2. GROOVY-5085

Docs: Make clear distinction between unsupported inner and supported nested classes

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      According to http://groovy.codehaus.org/Differences+from+Java, "Inner classes are not supported at the moment." Not every Java developer is necessarily aware of the distinction [1] between an inner class (aka nested non-static class) and a static nested class so it would be advise to make it clear on the page that static nested classes are fully supported by Groovy (and inner classes can be replaced with closures, as mentioned in the docs - it would be actually good to turn that mention into a link to [2] for the cases where you e.g. need to supply an EventListener instance to a Java method call).

      References:
      [1] http://download.oracle.com/javase/tutorial/java/javaOO/nested.html
      [2] http://docs.codehaus.org/display/GROOVY/Groovy+way+to+implement+interfaces

        Activity

        Jakub Holy created issue -
        Jochen Theodorou made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12734009 ] Default workflow, editable Closed status [ 12745837 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971558 ] Default workflow, editable Closed status [ 12979396 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jakub Holy
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development