groovy

Wrong line number on PropertyMissingException

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.7, 1.6-beta-2, 1.6-rc-1, 1.7-beta-1
  • Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

The following script:

println "hello world" // line 1
// line 2
Pffff // line 3

Will generate the following exception (when launched in the Swing console):

Exception thrown: groovy.lang.MissingPropertyException: No such property: Pffff for class: ConsoleScript7
groovy.lang.MissingPropertyException: No such property: Pffff for class: ConsoleScript7
at ConsoleScript7.run(ConsoleScript7:1)

You'll notice the error appears one line 1 instead of line 3

Activity

Hide
blackdrag blackdrag added a comment -

fixed

Show
blackdrag blackdrag added a comment - fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: