[ https://issues.apache.org/jira/browse/GROOVY-3472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-3472. ----------------------------- > 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 > Priority: Major > Fix For: 2.6.0-alpha-1 > > > 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 (v7.6.3#76005)