You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/07/04 03:00:02 UTC
[4/4] incubator-groovy git commit: GROOVY-7416: Problem With
CompileStatic And Interface Methods In Abstract Subclass (amend test)
GROOVY-7416: Problem With CompileStatic And Interface Methods In Abstract Subclass (amend test)
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/c03761f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/c03761f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/c03761f9
Branch: refs/heads/master
Commit: c03761f9c354e0d1645752eec5172ad9169e0035
Parents: 528b63f
Author: Paul King <pa...@asert.com.au>
Authored: Sat Jul 4 10:59:36 2015 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Sat Jul 4 10:59:36 2015 +1000
----------------------------------------------------------------------
src/test/groovy/transform/stc/BugsSTCTest.groovy | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/c03761f9/src/test/groovy/transform/stc/BugsSTCTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/transform/stc/BugsSTCTest.groovy b/src/test/groovy/transform/stc/BugsSTCTest.groovy
index ea1166a..438b585 100644
--- a/src/test/groovy/transform/stc/BugsSTCTest.groovy
+++ b/src/test/groovy/transform/stc/BugsSTCTest.groovy
@@ -658,22 +658,19 @@ Printer
}
Map<String, Object> m = new C().bar()
- List tmp = (List) m.get("some_key_here") // <--- actually groovy crashes here!!
+ List tmp = (List) m.get("some_key_here")
'''
}
// GROOVY-7416
void testMethodsFromInterfacesOfSuperClassesShouldBeVisible() {
assertScript '''
- import groovy.transform.CompileStatic
-
interface SomeInterface {
void someInterfaceMethod()
}
abstract class AbstractSuperClass implements SomeInterface {}
- @CompileStatic
abstract class AbstractSubClass extends AbstractSuperClass {
void someMethod() {
someInterfaceMethod()
@@ -683,15 +680,12 @@ Printer
assert AbstractSubClass.name == 'AbstractSubClass'
'''
assertScript '''
- import groovy.transform.CompileStatic
-
interface SomeInterface { void foo() }
interface SomeOtherInterface { void bar() }
interface AnotherInterface extends SomeInterface, SomeOtherInterface {}
abstract class Parent implements AnotherInterface {}
- @CompileStatic
abstract class Child extends Parent {
void baz() { foo(); bar() }
}