[jboss-jira] [JBoss JIRA] (JBEE-157) Improper exception handling in org.jboss.com.sun.corba.se.impl.javax.rmi.PortableRemoteObject#narrow()

David Lloyd (JIRA) issues at jboss.org
Thu Mar 1 11:12:01 EST 2018


     [ https://issues.jboss.org/browse/JBEE-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Lloyd resolved JBEE-157.
------------------------------
    Resolution: Done


> Improper exception handling in org.jboss.com.sun.corba.se.impl.javax.rmi.PortableRemoteObject#narrow()
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JBEE-157
>                 URL: https://issues.jboss.org/browse/JBEE-157
>             Project: JBoss JavaEE Spec APIs
>          Issue Type: Bug
>          Components: jboss-rmi-api
>            Reporter: David Lloyd
>            Assignee: Shelly McGowan
>
> org.jboss.com.sun.corba.se.impl.javax.rmi.PortableRemoteObject#narrow() has a {{catch (Exception error)}} block in it which wraps all exceptions in a {{ClassCastException}}.  However, there should be a second catch block which catches {{RuntimeException}} and rethrows them verbatim, in order to avoid confusing incorrect error messages.
> In particular, you can get a {{ClassCastException}} whose cause is another {{ClassCastException}}.
> Problem found in 1.0.4.Final; no version for this exists in the JIRA schema however.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list