You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Xiaojian Zhou (Jira)" <ji...@apache.org> on 2020/06/16 04:50:00 UTC

[jira] [Created] (GEODE-8259) DSFIDSerializerImpl should handle RTE the same as Exception

Xiaojian Zhou created GEODE-8259:
------------------------------------

             Summary: DSFIDSerializerImpl should handle RTE the same as Exception
                 Key: GEODE-8259
                 URL: https://issues.apache.org/jira/browse/GEODE-8259
             Project: Geode
          Issue Type: Improvement
            Reporter: Xiaojian Zhou


In GEOEDE-7090, DSFIDSerializerImpl.invokeFromData() will catch RunTimeException and throw. But convert Exception to be IOException. The idea is to avoid using SerializationException which is in another package. 

However, if my fromData() failed with IndexOutOfBoundary exception (which is an RTE), it will be thrown directly instead of treating it in handleException(), thus my serialization exception will never get handled. 

The fix is to merge the catch RunTimeException into catch Exception.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)