Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.3, 1.9-beta-4
-
Component/s: Compiler
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
The following code works in Java, but fails to compile in Groovy - looks like unintentional:
public class TestGenerics { static interface Z {} static class X implements Z {} static class Y extends X {} static class A <T extends Z> { void a(T t) { System.out.println(t); } } static class B extends A<Y> {} static class C extends A<X> {} public static void main(String[] args) { new C().a(new Y()); } }
Should be fixed but if you get a chance to confirm by trying a snapshot that would be great. Thanks for reporting the problem.