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

@PackageScope is not being honored for METHODS and FIELDS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.5, 2.0.6, 2.1.0-beta-1
    • None
    • ast builder
    • None
    • Windows 7 Enterprise, SP1, 32 Bit, JDK 1.6.0_35

    Description

      @PackageScope is not working as documented in http://groovy.codehaus.org/gapi/groovy/transform/PackageScope.html
      In the attached example, the only time package-private scope is enforced when annotated simply as @PackageScope on class or with CLASS enum value.

      Attachments

        1. bar.groovy
          0.3 kB
          Rajesh Joshi
        2. foo.groovy
          0.3 kB
          Rajesh Joshi

        Activity

          People

            guillaume Guillaume Sauthier
            rjoshi Rajesh Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: