On Fri, Nov 20, 2009 at 9:01 AM, BobV <[email protected]> wrote:
> Thanks for the review.
>
>> My only question is anything required for STOB to handle declared
>> RuntimeExceptions, or is this only for deRPC?
>
> ProxyCreator.addRemoteServiceRootTypes() iterates over the declared
> exception types for any given RPC method.   It imposes a constraint
> that they're derived from Exception.  STOB has no mention of
> RuntimeException, nor does it have any reason to treat exception types
> differently from return types.

That looks like an accident.  It looks like the intent was never to
serialize an unchecked exception.

When John and I talked about this issue previously, we couldn't come
up with an example where you'd really need to serialize an unchecked
exception.  You could always either make it checked, or throw a
different exception instead of the unchecked one.

Are there any use cases for serializing an unchecked exception, or
could we instead have STOB skip RunTimeExceptions just like it skips
Errors?


Lex

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to