With the changes to sun.misc.Unsafe documented by bug 4679390 ("sun.misc.Unsafe
needs to bind to new JVM native methods") integrated, ObjectStreamClass
should be updated to use longs instead of ints to store field offsets, so as
to improve portability to 64-bit architectures. This does not present
an immediate issue with Sun's own 64-bit JVM, since according to the
hotspot team, "truly long instance field offsets will never occur in any
forseeable simple variation the Hotspot JVM. Heap objects are not so big as to
require 64 bits to distinguish their fields." Such offsets may, however,
crop up in other vendors' implementations of the JVM, in which case
storing field offsets in variables of type long will improve portability.