[concurrency-interest] ReentrantReadWriteLock backport non-matching signature

Dhanji R. Prasanna dhanji at gmail.com
Fri Jul 14 19:45:41 EDT 2006

On 7/15/06, Rémi Forax <forax at univ-mlv.fr> wrote:
> Dhanji R. Prasanna wrote:
> > Somewhat off topic--does anyone know if covariant return types support
> > boxing for primitives?
> > For instance can I return Serializable on an overriden int method?
> your example is strange, Serializable is not  a subtype of int or even
> Integer.

Woops, reverse them--the question should have read "can you return int
on a Serializable?" (as Integer is a subtype of Serializable)
and the answer is no.

More information about the Concurrency-interest mailing list