Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Getting strange results on CustomObjectInputStream.readUnsignedByte() #105
I getting strange results on this method
The results are
currentByte + Byte.MAX_VALUE = 3
Do I miss anything?
Still, you example is not really related. XStream mimics the serialization of the JDK. So, you may create an example where XStream produces after deserialization a different object compared to one produced by the JDK. If the JDK behaves the same, XStream is definitely correct and you face a general problem in Java handling unsigned values, but not a special one of XStream.
On Tue, Feb 20, 2018 at 2:41 AM, Jörg Schaible ***@***.***> wrote: Closed #105 <#105> via 3305b44 <3305b44> . — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#105 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHrq5-x4y09sweRjhqiig6n2OCXTau0Gks5tWhSygaJpZM4RhA2M> .
-- Kobi Gana קובי גנה