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

Trait field references aren't atomic anymore

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      While upgrading Gradle from 2.5.4 to 2.5.7 the following scenario started failing:

      https://github.com/gradle/gradle/blob/51b80f5b3a24af9c10066be0171bff04c63f3823/subprojects/execution/src/test/groovy/org/gradle/internal/execution/steps/FingerprinterFixture.groovy#L39

       

      i.e. previously the referenced fields in Traits were already initialized, after upgrade they were all null (and initialized later).

      The workaround we've applied was the following: https://github.com/gradle/gradle/pull/9627/files#r291806047

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              paplorinc Lőrinc Pap
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: