groovy
  1. groovy
  2. GROOVY-5085

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

    Details

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

      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

        Hide
        Guillaume Laforge added a comment -

        Perhaps you might consider reformulating and updating that page? (it's a wiki after all)

        Show
        Guillaume Laforge added a comment - Perhaps you might consider reformulating and updating that page? (it's a wiki after all)
        Hide
        Jakub Holư added a comment -

        Hi Guillaume, I'm not sure how to get write access to the page. Even though I'm logged in here, on the page I've no edit rights/button (or even a login/register button).

        Show
        Jakub Holư added a comment - Hi Guillaume, I'm not sure how to get write access to the page. Even though I'm logged in here, on the page I've no edit rights/button (or even a login/register button).
        Hide
        Pascal Schumacher added a comment -

        Hello Jakub,

        the edit button should be left of the title.

        I edited the wiki as suggested, so this issue can be closed.

        Regards,
        Pascal

        Show
        Pascal Schumacher added a comment - Hello Jakub, the edit button should be left of the title. I edited the wiki as suggested, so this issue can be closed. Regards, Pascal

          People

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

            Dates

            • Created:
              Updated:
              Resolved: