fix boolean deserialization in ObjectInputStream

This commit is contained in:
Anonymous 2011-08-11 08:52:09 -06:00 committed by Joel Dice
parent 3c45db68c3
commit 7ed580cf84

View File

@ -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':