Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.1
-
None
-
Patch
Description
The exception org.codehaus.groovy.syntax.SyntaxException.getEndColumn() returns always getStartColumn() + 1.
(you can check that in the source code)
I'm trying to integrate the compiler to an IDE (JDeveloper) and I cannot get the error length to underline it properly.
I'm sending you a patch that obtains the error length from all the ASTNode's.
In the patch, I haven't deleted any unused constructor (even if it isn't used any more by the compiler) to maintain API backward compatibility.
I would really appreciate if you could fix it from groovy 2.0.2 on.