Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 55404200C14 for ; Tue, 24 Jan 2017 07:19:40 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53F20160B53; Tue, 24 Jan 2017 06:19:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9D0E2160B49 for ; Tue, 24 Jan 2017 07:19:39 +0100 (CET) Received: (qmail 94156 invoked by uid 500); 24 Jan 2017 06:19:38 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 94147 invoked by uid 99); 24 Jan 2017 06:19:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2017 06:19:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8870DDFC9D; Tue, 24 Jan 2017 06:19:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sunlan@apache.org To: commits@groovy.apache.org Message-Id: <5a24047642ec4b19ad3b35c141ff15fa@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: groovy git commit: Add a test case for GROOVY-5318: generic types in fully-qualified class names parsing error Date: Tue, 24 Jan 2017 06:19:38 +0000 (UTC) archived-at: Tue, 24 Jan 2017 06:19:40 -0000 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 Authored: Tue Jan 24 14:19:26 2017 +0800 Committer: sunlan 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.ArrayList>() \ No newline at end of file