Community
Participate
Working Groups
In this scenario: ----8<------------ class Foo<T> {} class Bar<T> extends Foo<T> { def FooBar<T> getFooBar() { null } } class FooBar<T> {} class Baz { def <T> foo(Foo<T> foo, T arg) { if(foo instanceof Bar<?>) baz(foo.fooBar, arg) // error in Java code only } def <T> baz(FooBar<T> bar, T arg) {} } ---->8------------ Xtend does not report a validation error, but Java does: "The method baz(FooBar<T>, T) in the type Baz is not applicable for the arguments (FooBar<capture#1-of ?>, T)"
see bug 432129