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

@Synchronized could allow an explicit static lock to be used for an instance method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.6, 2.4.0-beta-2
    • 2.3.7, 2.4.0-beta-3
    • None
    • None

    Description

      Although rare, it can be useful to have a static lock in use with an instance method. The annotation currently explicitly prohibits that combination. After this change, it would be allowed. We could add a codenarc check to warn against the possible static/instance mismatch.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: