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

@PackageScope could be also allowed for constructors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4.0-beta-1
    • Component/s: ast builder
    • Labels:
      None

      Description

      @PackageScope could be also allowed for constructors. Currently:

      @Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
      

      It is sometimes useful to make an internal class constructor visible also in
      tests (by making it package visible). I wonder if there is a technical reason why it is not supported.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              szpak Marcin Zajaczkowski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: