Hi,

Am 27.06.2009 um 22:30 schrieb Handkea fumosa:

I'd agree that a ClassCastException is not inappropriate if you try to
put heterogeneous objects into a sorted-set.

But contains? should probably just return true or false, never throw.
Michael's set doesn't contain 5; asking whether it does does not seem
to me to be an error.

I think it is, because there is some path in my
program where a wrong value can reach my
sorted-set. So I did something wrong somewhere
and I'd like to know about it.

OTOH, this is maybe too much static type thinking...

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to