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

static initializers on trait fields are discarded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.4
    • None
    • None
    • None

    Description

      Related to GROOVY-7514, I found that in addition to the final qualifier being discarded, the initializer is discarded as well, so the private static final field is null at runtime.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              chrylis Christopher Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: