diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2001-04-26 02:02:05 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2001-04-26 03:02:05 +0100 |
commit | 0cd99be7377980b537d5b3a5c1b2903f6b114d9b (patch) | |
tree | 6e9ae6e83b7184ea72086b949cfcbb9f8a4c3a3d /libjava/java/text | |
parent | 7b518b39532eb29e51d8e1a81794ed1c59fdff86 (diff) | |
download | gcc-0cd99be7377980b537d5b3a5c1b2903f6b114d9b.zip gcc-0cd99be7377980b537d5b3a5c1b2903f6b114d9b.tar.gz gcc-0cd99be7377980b537d5b3a5c1b2903f6b114d9b.tar.bz2 |
re PR libgcj/2237 (serialization doesn't throw exception on failure)
Fix PR libgcj/2237:
* java/io/ObjectStreamClass.java (setClass): Calculate
serialVersionUID for local class and compare it against the UID
from the Object Stream. Throw InvalidClassException upon mismatch.
(setUID): Renamed to...
(getClassUID): this. Return the calculated class UID rather than
setting uid field directly.
(getDefinedSUID): Removed.
* java/io/ObjectInputStream.java (resolveClass): Use the
three-argument Class.forName().
* java/io/InvalidClassException (toString): Don't include classname in
result if it is null.
From-SVN: r41567
Diffstat (limited to 'libjava/java/text')
0 files changed, 0 insertions, 0 deletions