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

@Singleton(lazy=true) does not perform the correct double checked locking for Java

    XMLWordPrintableJSON

Details

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

    Description

      @Singleton(lazy=true) does not perform the correct double checked locking for Java

      It does the naive version where no local variable is declared.

      More info here: http://groovy.329449.n5.nabble.com/Singleton-double-checked-locking-fix-td4302467.html

      I have a patch that I will commit.

      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: