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

MissingPropertyException: No such property: println

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-JSR-3
    • 1.0-JSR-4
    • groovy-jdk
    • None
    • Windows

    Description

      // demo.groovy
      println [1,2].collect

      {it + 1}

      run the file and below exception is thrown
      Caught: groovy.lang.MissingPropertyException: No such property: println for class: demo
      at demo.run(e:\groovy\demo.groovy:2)
      at demo.main(e:\groovy\demo.groovy)


      but for file
      //demo2.groovy
      println ([1,2].collect{it + 1}

      )

      It works well.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: