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

@PackageScope is not being honored for METHODS and FIELDS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.5, 2.0.6, 2.1.0-beta-1
    • Fix Version/s: None
    • Component/s: ast builder
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: