[concurrency-interest] ReentrantReadWriteLock backportnon-matching signature

David Holmes dcholmes at optusnet.com.au
Fri Jul 14 22:25:20 EDT 2006


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

I should have said however, that you could always return Integer for
Serializable and utilize autoboxing to get to/from int. Of course code that
only knows about the Serializable return type will require an explicit
Integer cast.

But this is really O-T now :)

David



More information about the Concurrency-interest mailing list