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 2018/03/15 01:19:56 UTC
groovy git commit: Add test for "GROOVY-8511: @PackageScope(METHODS)
fails under Parrot Parser due to synthetic public determination"
Repository: groovy
Updated Branches:
refs/heads/master d28df8f6e -> 594dd7d74
Add test for "GROOVY-8511: @PackageScope(METHODS) fails under Parrot Parser due to synthetic public determination"
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/594dd7d7
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/594dd7d7
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/594dd7d7
Branch: refs/heads/master
Commit: 594dd7d742057d0c31393ed80fffe3da31dcc78b
Parents: d28df8f
Author: sunlan <su...@apache.org>
Authored: Thu Mar 15 09:19:32 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Thu Mar 15 09:19:32 2018 +0800
----------------------------------------------------------------------
.../parser/antlr4/GroovyParserTest.groovy | 5 ++--
.../test/resources/bugs/BUG-GROOVY-8511.groovy | 25 ++++++++++++++++++++
2 files changed, 27 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/594dd7d7/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy b/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
index 844b784..ce30d9a 100644
--- a/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
+++ b/subprojects/parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy
@@ -388,10 +388,9 @@ class GroovyParserTest extends GroovyTestCase {
doRunAndTestAntlr4('bugs/BUG-GROOVY-2324.groovy')
doTest('bugs/BUG-GROOVY-8161.groovy')
doRunAndTestAntlr4('bugs/GROOVY-3898.groovy')
- doRunAndTestAntlr4('bugs/BUG-GROOVY-8311.groovy')
-
doRunAndTestAntlr4('bugs/GROOVY-8228.groovy')
-
+ doRunAndTestAntlr4('bugs/BUG-GROOVY-8311.groovy')
doRunAndTest('bugs/BUG-GROOVY-8426.groovy')
+ doTest('bugs/BUG-GROOVY-8511.groovy');
}
}
http://git-wip-us.apache.org/repos/asf/groovy/blob/594dd7d7/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy b/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy
new file mode 100644
index 0000000..8aeb874
--- /dev/null
+++ b/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+class XX {
+ @groovy.transform.PackageScope
+ int x() {}
+}
+
+@groovy.transform.PackageScope
+int y() {}