Created
March 8, 2012 20:32
-
-
Save mariojunior/2003261 to your computer and use it in GitHub Desktop.
Magic line for BlazeDS null/NaN Number (Java/AS3) serialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//On input class.... | |
... | |
} else if ((value instanceOf Double) && (null == value)) { | |
return Double.NaN; | |
} else ... | |
//on output class... | |
... | |
} else if ((o instanceOf Double) && (null == o)) { | |
super.writeObject(Double.NaN); | |
} else ... | |
@mariojunior |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment