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

anonymous inner class visibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-11
    • None

    Description

      An anonymous inner class in groovy is created with public visibility. The java compiler creates them with default (package-private) visibility.

      The language specification makes no specific mention of visibility modifiers:
      https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.9.5

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: