-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
windows_nt
Name: rm29839 Date: 02/19/98
I would like to see the resolveClass method in ObjectInputStream relaxed a bit. Currently the returned class must have the same
name including package as the StreamClass provided. I would like the option to return a compatable class in a different package.
In my case I wanted to reorganize the packages in my product and was unable to due to serialized data streams which require the
class to reside in the same package. This could also occur with the Swing 1.1 vs 1.2 package names.
I was quite pleased when I found resolveClass as I thought you had thought ahead about this type of class movement issue, only
to find unacceptable restrictions on the clas that can be returned.
(Review ID: 25105)
======================================================================
- duplicates
-
JDK-4087295 Support package renaming for classes with ObjectInputStream.resolve
-
- Closed
-