Skip to content

Instantly share code, notes, and snippets.

@mariojunior
Created March 8, 2012 20:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariojunior/2003261 to your computer and use it in GitHub Desktop.
Save mariojunior/2003261 to your computer and use it in GitHub Desktop.
Magic line for BlazeDS null/NaN Number (Java/AS3) serialization
//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