package test4; public class Signature { public static class Foo { int value; } public int run() { Signature s = new Signature(); return s.foo(Integer.valueOf(3), "foo", s, null).length(); } T foo(S s, T t, Signature signature, Signature> v) { return t; } }