ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kulichenko <valentin.kuliche...@gmail.com>
Subject Re: Assertions as binary data validation checks in deserialization
Date Thu, 27 Jul 2017 20:37:17 GMT
Makes sense to me. Feel free to create a ticket unless someone else has any
objection. However, I think that we should revise other code for such
places then. Fixing only this one line doesn't change a lot.


On Thu, Jul 27, 2017 at 12:55 PM, Andrey Kuznetsov <stkuzma@gmail.com>

> Indeed, "let it crash" approach is better than unclear error in some
> indeterminate place later. Here we depend on data from "inpredictable"
> source, so assertions are not suitable.
> 27 июля 2017 г. 22:35 пользователь "Valentin Kulichenko" <
> valentin.kulichenko@gmail.com> написал:
> Do you suggest to throw an exception instead of assertions?
> -Val

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message