Christopher Smith created GROOVY-7404:
-----------------------------------------

             Summary: final fields on trait can't be set in constructor
                 Key: GROOVY-7404
                 URL: https://issues.apache.org/jira/browse/GROOVY-7404
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.4.3
            Reporter: Christopher Smith
            Priority: Minor


I have some exception classes that each carry some tracking information about 
the nature of the exception in final fields. I tried to pull these fields out 
into a trait, but attempting to set their values in the constructor using 
{{this.key = key}} results in a "cannot set read-only property" error. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to