[concurrency-interest] Minor generics nit in AtomicReferenceArray
Dhanji R. Prasanna
dhanji at gmail.com
Thu Mar 26 20:57:21 EDT 2009
On Fri, Mar 27, 2009 at 9:43 AM, David M. Lloyd <david.lloyd at redhat.com>wrote:
> But comparisons based on object identity need not have matching types. In
> other words, given: "Object foo; T bar;", "foo == bar" is a valid
Yea but Martin's point is that that expression will only ever be true if foo
and bar are of exactly the same type. Which, is not the case with equals and
collections, both of whom will work with covariant types.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest