Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.6
-
Fix Version/s: 1.5.7, 1.6-beta-2
-
Component/s: parser
-
Labels:None
-
Number of attachments :
Description
For certain kind of expressions it looks like PropertyExpression provides wrong (last)Line and (last)Column data. For the error case it is usually line == lastLine and column == lastColumn.
For the following snippet:
println new URL("http://google.com").getT
name = "xxx"
"User ${name}"
new URL("http://google.com").getT is parsed as PropertyExpression:
PropertyEpression: line = 1, column = 37, lastLine = 1, lastColumn = 37
while
objectExpression: line = 1, column = 9, lastLine = 1, lastColumn = 37
property: line = 1. column = 38, lastLine = 3, lastColumn = 1
Issue Links
- is duplicated by
-
GROOVY-3076
ConstantExpression line, column data overlap defining scope
-
Similar problem for RangeExpression and its children (from, to). RangeExpression contains the correct data, while to and from sometimes overlap it or contains 0,0. Should this be filed as separate issue?