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

Number initialization in traits

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.9
    • Fix Version/s: 2.3.10, 2.4.0-rc-1
    • Component/s: None
    • Labels:

      Description

      The code of this example is not working in groovy 2.3.9 http://mrhaki.blogspot.com.es/2014/05/groovy-goodness-implementing-traits-at.html

      To fix, just have to change:

      trait Version {
          Long version = 0L // <- this L
      }
      

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              chiquitinxx Jorge Franco Leza
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: