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

Number initialization in traits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.9
    • 2.3.10, 2.4.0-rc-1
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: