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

Expando's class attribute should be overwritable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-JSR-5
    • None
    • None

    Description

      def e = new Expando
      e.class = "hello world"

      assert e.class = "hello world"

      should work. This work in very early stages of groovy, as you can see here: http://jira.codehaus.org/browse/GROOVY-114
      James closed in and I was not able to find discussion about this on gmane.org. Remember also if the class above would be a map, it would work. SO we already have an exception here. I think it would be consistent to make this work for Expando too

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            blackdrag Jochen Theodorou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: