Well, since Java 5 generics are kind of half baked, we don't really need to
do anything to support them.  Sure, we could make it a little more "warning
friendly", but at the end of the day you'll be no more type safe....

You can do this in Java 5:

   List untyped = new ArrayList();
   untyped.add(1);
   untyped.add(2);
   untyped.add(3);

   // WOW!
   List<String> strings = untyped;

  // Error doesn't happen until you attempt to use the array,
  // no different than old-school casting, but less clear code.
   for(String s : strings) {
     ///...
   }

Clinton



On 3/10/07, Gordon Ross <[EMAIL PROTECTED]> wrote:

In the methods such as queryForList, does iBatis support generic Lists ?
I couldn't see any reference anywhere to say yes or no...

GTG

Reply via email to