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

wrong line number in 1.6 for getting an property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6-beta-1
    • 1.6-rc-1, 1.7-beta-1
    • class generator
    • None

    Description

      def foo() {
        integer.metaClass = null
        integer.metaClass = null  
      }
      
      foo()
      

      of course this script fails, but interesting is that the trace reports the second integer.metaClass = null line as the source of the error, instead of the first one. Adding more code will show that the error reports always the last line of code in the method. I confirmed the error does not happen in current 1.5

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: