|
From: Oliver H. <Ol...@ou...> - 2005-10-23 23:00:50
|
> On the other hand, when it comes to method signatures, my=20 > understanding is that the bounding information is available=20 > through reflection. So you can tell that a method takes a=20 > List<String> and not a List. I'm not 100% sure on this (and=20 > confirmation by anybody would be good), but I presume this is=20 > what Rob is basing his statement below on. =20 This is correct - Java 1.5 does keep generic type information relating to fields and method signatures (accessible using the new #getGeneric* methods on Field and Method). I'm taking advantage of this for type inference in Spring Rich's data binding system. Ollie |