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/01/24 06:19:38 UTC

groovy git commit: Add a test case for GROOVY-5318: generic types in fully-qualified class names parsing error

Repository: groovy
Updated Branches:
  refs/heads/parrot 65c2bf524 -> 452e41775


Add a test case for GROOVY-5318: generic types in fully-qualified class names parsing error


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

Branch: refs/heads/parrot
Commit: 452e417750d95961368f607644ab2fdf8dc0c5e0
Parents: 65c2bf5
Author: sunlan <su...@apache.org>
Authored: Tue Jan 24 14:19:26 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Tue Jan 24 14:19:26 2017 +0800

----------------------------------------------------------------------
 .../org/apache/groovy/parser/antlr4/SyntaxErrorTest.groovy       | 4 ++++
 .../src/test/resources/bugs/BUG-GROOVY-5318.groovy               | 1 +
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/452e4177/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/SyntaxErrorTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/SyntaxErrorTest.groovy b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/SyntaxErrorTest.groovy
index 787b313..c6c0b62 100644
--- a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/SyntaxErrorTest.groovy
+++ b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/SyntaxErrorTest.groovy
@@ -121,6 +121,10 @@ class SyntaxErrorTest extends GroovyTestCase {
         TestUtils.doRunAndShouldFail('fail/AbstractMethod_06x.groovy');
     }
 
+    void "test groovy core - BUGs"() {
+        TestUtils.doRunAndShouldFail('bugs/BUG-GROOVY-5318.groovy');
+    }
+
     void "test groovy core - DoWhile"() {
         TestUtils.doRunAndShouldFail('fail/DoWhile_01x.groovy');
     }

http://git-wip-us.apache.org/repos/asf/groovy/blob/452e4177/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-5318.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-5318.groovy b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-5318.groovy
new file mode 100644
index 0000000..089e97b
--- /dev/null
+++ b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-5318.groovy
@@ -0,0 +1 @@
+def a= new java.util<Integer>.ArrayList<ArrayList<Integer>>()
\ No newline at end of file