|
Quick Lists
|
|
Bug ID:
|
6433005
|
|
Votes
|
0
|
|
Synopsis
|
(coll) Collection wrappers should implement Serializable iff wrapped collection does
|
|
Category
|
java:classes_util
|
|
Reported Against
|
|
|
Release Fixed
|
|
|
State
|
6-Fix Understood,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
|
|
Submit Date
|
01-JUN-2006
|
|
Description
|
Collections.synchronizedSet (and others) state:
* <p>The returned set will be serializable if the specified set is
* serializable.
One would expect that if
! (s instanceof Serializable)
implies
! (synchronizedSet(s) instanceof Serializable)
so that runtime tests can dynamically determine serializability.
Posted Date : 2006-06-01 21:22:46.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
The submitter is correct. It is worth considering
returning different concrete implementations depending on
whether argument set is dynamically instanceof Serializable.
Posted Date : 2006-06-01 21:24:22.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |