-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
1.4.0, 5.0, 6u10
-
generic, x86, sparc
-
generic, solaris_8, windows_xp
Name: rmT116609 Date: 11/21/2002
DESCRIPTION OF THE PROBLEM :
subList() of array list return an non serializable object. It causes us problems when we tried to pass a sub list of array list to an ejb session bean method. By studying the source code of JDK, we found that return object is of an
internal class called SubList which extends AbstractList. And AbstractList does not implement serializable.
EXPECTED VERSUS ACTUAL BEHAVIOR :
I understand we can have a workround for this simply new an new array list. However, I believe JDK should perserve the serializblablity by checking it and return it accordingly.
CUSTOMER WORKAROUND :
new an array list of the result of subList()
(Review ID: 166754)
======================================================================
- duplicates
-
JDK-6835580 AbstractList.SubList is not serializable
-
- Closed
-
- relates to
-
JDK-6431617 (coll) AbstractList$Itr is not serializable
-
- Closed
-