Am 17.04.2012 09:32, schrieb Lance Java:
> A simpler option could be to serialize the data to a temp OutputStream
> instead of checking instanceof Serializable.

yeah, but as i wrote: you wont catch nested non serializable data this
way, if it is not instantiated.


@SessionState
private Cart cart;

the test will succeed (assuming you did not initialize ALL the nested
cart properties for the test), but when the nested data structures
(like: "cart.customer.shippingAddress") is filled with data in
production and "shippingAddress" is not serializable, the serialization
will fail in production even when it succeeded with the temp output
stream (which only wrote "cart", not the nested "customer" and
"shippingAddress" fields).



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to