Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.6
-
None
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
Attachments
Issue Links
- is duplicated by
-
GROOVY-3076 ConstantExpression line, column data overlap defining scope
- Closed