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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.6, 2.4.0-beta-2
    • Fix Version/s: 2.3.7, 2.4.0-beta-3
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: