Hessian fixes
I’ve been cleaning up some Hessian bugs in preparation for the next release and I ran into a couple of doozies. During the week, I dealt with an issue reported by Riccardo wherein I rediscovered that ActionScript doesn’t actually have 64-bit longs, only IEEE 64-bit doubles. This screws up 2’s compliment arithmetic if you don’t recognize it, as I had done before.
It’s now fixed…
Today I worked on (de)serializing Java enums with constant-specific methods. Don’t know what those are? Neither did I. Tim Dawson was kind enough to send me a couple of examples:
Kind of an interesting use case. Here’s the rub. Try running this code with it:
What do you think you get? The answer’s under the cut…
Enum1 isEnum => false Enum1 parent isEnum => true Enum2 isEnum => false Enum2 parent isEnum => true
Bizarre, huh? Well, Hessian now correctly serializes and deserializes these cases.
Tags: actionscript, hessian, java enum
