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

row num and col num of error info is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 1.1-rc-1
    • 1.1-rc-2
    • None
    • None

    Description

      run the following code

      def a = new 
      
      B()
      

      get the error info:
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script5: 1: unable to resolve class B
      @ line 1, column 9.
      1 error

      row num should be 3 and the column num should be 1

      if the code modifed as

      def a = new B()
      

      we will get the same error info:
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script8: 1: unable to resolve class B
      @ line 1, column 9.
      1 error

      Is the col 9 caculated by the following way?
      1def2 3a4 5=6 7new8 9B()

      I added the row num to groovy console.(GROOVY-2206), but did not add the col num because of the former reason.

      Thanks,
      Daniel.Sun

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: