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

Unqualified reference to inner class of super class does not support package-private visibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-rc-1, 2.5.16
    • None
    • None

    Description

      Follow up to GROOVY-8531. Consider the following:

      Outer.java

      package pack;
      
      class Outer {
        enum Inner {
          CONST
        }
        Outer(Inner inner) {
        }
      }
      

      Other.groovy

      package pack
      
      class Other extends Outer {
        Other() {
          super(Inner.CONST)
        }
      }
      

      The reference to the static inner class "Inner" should also work for package-private visibility. Currently public and protected are supported.

      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:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h