Skip to main content

Blog Archive for carcassi during August 2011

You know that generics are too hard when you can't even figure out why something does not compile. Found this (simplified example of something that I have encountered): interface Test1<T> { public List<T> getList(); } public void test1(Test1<?> arg) { List<?> result = arg.getList(); } interface Test2<T> { public List&...