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

Static compiler doesn't write valid bytecode for list.property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-rc-3
    • 2.0-rc-4
    • Static compilation
    • None

    Description

      Given the following code:

      class Elem { int value }
      List<Elem> list = new LinkedList<Elem>()
      list.add(new Elem(value:123))
      list.add(new Elem(value:456))
      assert list.value == [ 123, 456 ]
      

      The static compiler doesn't produce bytecode for the list.value call.

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: