You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (JIRA)" <ji...@apache.org> on 2017/01/20 02:47:26 UTC
[jira] [Assigned] (GROOVY-3472) Wrong line/column numbers for
method and closure blocks
[ https://issues.apache.org/jira/browse/GROOVY-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Sun reassigned GROOVY-3472:
----------------------------------
Assignee: Daniel Sun
> Wrong line/column numbers for method and closure blocks
> -------------------------------------------------------
>
> Key: GROOVY-3472
> URL: https://issues.apache.org/jira/browse/GROOVY-3472
> Project: Groovy
> Issue Type: Bug
> Components: parser
> Affects Versions: 1.5.7
> Reporter: Petr Hejl
> Assignee: Daniel Sun
> Fix For: 4.0
>
>
> Under certain circumstances code blocks (BlockStatement) of MethodNode and ClosureExpression have just [-1,-1,-1,-1] for line and column numbers, while parent (MethodNode, ClosureExpression) is ok. Sometimes even some statements in the block have [-1,-1,-1,-1] coordinates.
> Sample - method x:
> {noformat}
> class GroovyClass {
> def x() {
> String a
>
> }
> }
> {noformat}
> In this situation MethodNode [2,5,6,6], code BlockStatement [-1,-1,-1,-1] , ReturnStatement [-1,-1,-1,-1]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)