Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd always recommend folk use constructor-based deserialisation, rather than getting the deserialiser to create empty objects and poke at fields.

That's still (at least naively) using reflection, but it's a lot safer.

In practice, using reflection for every object being deserialised is far too slow and Jackson at least generates code at runtime rather than repeatedly reflecting. That's magic, but it's nice magic because it's not breaking the language: one can see that it's possible to implement it in pure Java.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: