From 7ed580cf84849a90060272fa5feab827b3c3e8fb Mon Sep 17 00:00:00 2001 From: Anonymous Date: Thu, 11 Aug 2011 08:52:09 -0600 Subject: [PATCH] fix boolean deserialization in ObjectInputStream --- classpath/java/io/ObjectInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/io/ObjectInputStream.java b/classpath/java/io/ObjectInputStream.java index a039046517..45bacc7380 100644 --- a/classpath/java/io/ObjectInputStream.java +++ b/classpath/java/io/ObjectInputStream.java @@ -161,7 +161,7 @@ public class ObjectInputStream extends InputStream { case 'n': return null; case 'z': - return (readLongToken() == 0); + return (readLongToken() != 0); case 'b': return (byte) readLongToken(); case 'c':