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 23:58:44 UTC
[1/2] groovy git commit: Remove the puzzled test for GROOVY-8439
Repository: groovy
Updated Branches:
refs/heads/master c51891079 -> 4ba0b72b2
Remove the puzzled test for GROOVY-8439
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/46fabd47
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/46fabd47
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/46fabd47
Branch: refs/heads/master
Commit: 46fabd4710ad5fe716ed9312dbef8693a782b728
Parents: c518910
Author: sunlan <su...@apache.org>
Authored: Fri Mar 16 07:45:55 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Fri Mar 16 07:45:55 2018 +0800
----------------------------------------------------------------------
src/test/groovy/bugs/Groovy8439Bug.groovy | 14 --------------
1 file changed, 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/46fabd47/src/test/groovy/bugs/Groovy8439Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy8439Bug.groovy b/src/test/groovy/bugs/Groovy8439Bug.groovy
index 13af477..ccca137 100644
--- a/src/test/groovy/bugs/Groovy8439Bug.groovy
+++ b/src/test/groovy/bugs/Groovy8439Bug.groovy
@@ -46,18 +46,4 @@ class Groovy8439Bug extends GroovyTestCase {
Test.something(null, [])
'''
}
-
- void testSTCGenerics2() {
- assertScript '''
- import groovy.transform.CompileStatic
- @CompileStatic
- class Test<T extends Map> {
- static def something(List<String> strList) {
- strList.collect { "hello,$it" }
- }
- }
-
- assert ["hello,Jochen", "hello,Paul", "hello,Daniel"] == Test.something(["Jochen", "Paul", "Daniel"])
- '''
- }
}
[2/2] groovy git commit: Add one more test case for GROOVY-8511
Posted by su...@apache.org.
Add one more test case for GROOVY-8511
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/4ba0b72b
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/4ba0b72b
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/4ba0b72b
Branch: refs/heads/master
Commit: 4ba0b72b2c6c418f22fe2ab6fb7a8b4e5c36d381
Parents: 46fabd4
Author: sunlan <su...@apache.org>
Authored: Fri Mar 16 07:58:38 2018 +0800
Committer: sunlan <su...@apache.org>
Committed: Fri Mar 16 07:58:38 2018 +0800
----------------------------------------------------------------------
.../src/test/resources/bugs/BUG-GROOVY-8511.groovy | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/4ba0b72b/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
index 8aeb874..8fbdcf8 100644
--- a/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/bugs/BUG-GROOVY-8511.groovy
@@ -23,3 +23,12 @@ class XX {
@groovy.transform.PackageScope
int y() {}
+
+
+@groovy.transform.PackageScope(groovy.transform.PackageScopeTarget.METHODS)
+class Foo2 {
+ Object method1() {}
+ public Object method2() {}
+ private Object method3() {}
+ protected Object method4() {}
+}