Re: Generics error messages



On Sun, 31 Jul 2005 00:23:04 -0600, Chris Smith <cdsmith@xxxxxxx>
wrote or quoted :

>Collection<? extends Automobile>

Let me see if I follow:


Collection<? extends Automobile> a = new ArrayList<Automobile>( 10 );

a.add( new Automobile() );

a.add( new Car() ); // blocked


So strangely Collection<? extends Automobile> means the exact
opposite.

it means Collection<only Automobile no Cars or Trucks>



--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
.