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

@PackageScope could be also allowed for constructors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.2
    • 2.4.0-beta-1
    • ast builder
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: