> After a refinement to the checks under development in > https://github.com/openjdk/jdk/pull/5709, the new checks examine array types > of serial fields and warn if the underlying component type is not > serializable. Per the JLS, all array types are serializable, but if the base > component is not serializable, the serialization process can throw an > exception. > > From "Java Object Serialization Specification: 2 - Object Output Classes": > > "If the object is an array, writeObject is called recursively to write the > ObjectStreamClass of the array. The handle for the array is assigned. It is > followed by the length of the array. Each element of the array is then > written to the stream, after which writeObject returns."
Joe Darcy has updated the pull request incrementally with one additional commit since the last revision: Update LastModified info. ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/5924/files - new: https://git.openjdk.java.net/jdk/pull/5924/files/c184ee63..41068620 Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5924&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5924&range=00-01 Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.java.net/jdk/pull/5924.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5924/head:pull/5924 PR: https://git.openjdk.java.net/jdk/pull/5924