Issue #304 has been reported by Philipp  Buluschek.

----------------------------------------
Improvement #304: DefaultDeserializer should not throw ClassCastException on 
invalid input
http://zb4o.aaloa.org/redmine/issues/304

Author: Philipp  Buluschek
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Has a patch: No
Has license agreement signed: No


When deserializing a boolean from a byte, if the value is not 1 or 0, the 
deserializer throws a ClassCastException (as it tries to cast 
Integers.INVALID_OBJECT to a Boolean). 

I suppose Integers.readBooleanObject() should throw an IllegalArgumentException 
and return a Boolean.




-- 
DO NOT ANSWER TO THIS E-MAIL ADDRESS, NO ONE WILL READ IT. PLEASE WRITE TO 
[email protected]
ZigBee 4 OSGi - Redmine E-Mail Notificatioon
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://zb4o.aaloa.org/redmine
_______________________________________________
Dev mailing list
[email protected]
http://zb4osgi.aaloa.org/mailman/listinfo/dev

Reply via email to