Serialization question on java 7

Paulo Levi i30817 at gmail.com
Tue Dec 27 21:51:00 PST 2011


Is it new behavior of ObjectInput/OutputStream to store serialization
exceptions and throw them on deserialization?

It's pretty handy. I found that when trying to deserialize a Path instance.

SEVERE: Couldn't read saved object
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: sun.nio.fs.UnixPath
....
Caused by: java.io.NotSerializableException: sun.nio.fs.UnixPath (from
previous invocation).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20111228/fd145f4f/attachment.html 


More information about the nio-discuss mailing list