You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/09/11 14:29:17 UTC

[3/3] groovy git commit: Fix the position issue

Fix the position issue

(cherry picked from commit 58bc7a8)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/699627e1
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/699627e1
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/699627e1

Branch: refs/heads/GROOVY_2_6_X
Commit: 699627e17946603bb13f8101d31c40f9af75c101
Parents: 6007654
Author: sunlan <su...@apache.org>
Authored: Mon Sep 11 22:25:22 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Mon Sep 11 22:29:00 2017 +0800

----------------------------------------------------------------------
 src/main/antlr/GroovyParser.g4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/699627e1/src/main/antlr/GroovyParser.g4
----------------------------------------------------------------------
diff --git a/src/main/antlr/GroovyParser.g4 b/src/main/antlr/GroovyParser.g4
index a3d8869..a03da00 100644
--- a/src/main/antlr/GroovyParser.g4
+++ b/src/main/antlr/GroovyParser.g4
@@ -697,7 +697,7 @@ locals[boolean resourcesExists = false]
             nls finallyBlock
         |
             // catch and finally clauses required unless it's a try-with-resources block
-            { require($resourcesExists, "either a catch or finally clause or both is required for a try-catch-finally statement", -5); }
+            { require($resourcesExists, "either a catch or finally clause or both is required for a try-catch-finally statement"); }
         )
     ;