Re: Generics error messages



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

> A Collection<Car>, on the other hand, may
>only contain Cars. It is an error to try to add a Truck to such a
>collection.

I did an experiment the other night and JDK 1.5 let me add a Dalmatian
to a Dog ArrayList.

I should repeat that to be doubly sure. I was expecting it to reject
the Dalmatian which would then make the <? E> <E> distinction
meaningful.


--
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
.



Relevant Pages

  • Re: Duhh....
    ... A parking lot full of crap German cars! ... I noticed him driving an old beat up truck. ... It is just Newport Beach. ... condos that smell like shit. ...
    (alt.2600)
  • Re: The need for high tech traffic detectors
    ... Parked cars are not the only thing to worry about. ... be a hazard once you near them. ... truck and a recycling truck were parked facing the wrong way on the other ... man got out the driver's door (probably thinking, ...
    (rec.bicycles.tech)
  • Re: Duhh....
    ... A parking lot full of crap German cars! ... Where will your truck be in 35 years :-) ... It is just Newport Beach. ... Irvine would be several hundred a month cheaper. ...
    (alt.2600)
  • Re: Duhh....
    ... A parking lot full of crap German cars! ... Where will your truck be in 35 years :-) ... It is just Newport Beach. ... I just don't know where all those people get all that money, and why they like to waste it on BMW's, Mercedes, plastic surgery and crappy condos that smell like shit. ...
    (alt.2600)
  • Re: FINALLY
    ... I accomplish less than if I was alone. ... So, I said, I will buy the parts to make repairs if he will install ...  Dad, I cant crawl under the truck, its too low. ... I was the same way, I loved working on cars, motorcycles, snowmobiles, ...
    (rec.boats)