XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • groovy-runtime
    • None
    • Ubuntu 6.06 LTS "Dapper Drake" + JDK 1.5.0_06 + Groovy r 4109

    Description

      The script:

      a = 1
      a.b = 2
      

      correctly fails with a "no such field b for class Integer". However the script:

      c = { }
      c.b = 3
      println ( c.b )
      println ( b )
      

      prints:

      3
      3

      which has to be wrong on 2 fronts: a closure doesn't have a property b; setting c.b should not create an entry b in the binding.

      John agreed this should almost certainly be treated as a bug.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              russel Dr. Russel Winder
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: