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

@WithReadLock and @WithWriteLock creates the wrong locks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8-rc-4
    • 1.8.0, 1.9-beta-1
    • Compiler
    • None
    • Patch

    Description

      The @WithReadLock forces a method to obtain a write lock.
      The @WithWriteLock forces a method to obtain a read lock.

      This is exactly backwards. It should be the other way around. I have a fix.

      Attachments

        Activity

          People

            hamletdrc Hamlet D'Arcy
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: