Because if its local call that can't be optimized and there is an
application exception that is returned without marshalling the
exception handler code can see a ClassCastException due to
different class loaders.

Even without a potential class loader issue, all values including
exceptions need to adhere to the RMI copy semantics if optimization
is off or else we risk exposing component internal state that may be
associated with the exception.

----- Original Message -----
From: "marc fleury" <[EMAIL PROTECTED]>
To: "Jboss-Development@Lists. Sourceforge. Net"
<[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 9:08 PM
Subject: [JBoss-dev] Marshalling exceptions on optimized calls


> GenericProxy.invokeContainer(O,M,O)
>
> we have if (optimize && isLocal)
>
> and then else
> if local marshaling of exception (ca line 369)
>
> I remember there was a reason why we do this but I can't remember it and
> can't rebuild it as I rewrite these classes.  Does anyone remember?
>
> marcf
>
> xxxxxxxxxxxxxxxx
> Marc Fleury
> President
> JBoss Group, LLC
> xxxxxxxxxxxxxxxx
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to