Uploaded image for project: 'JBoss Enterprise Spec APIs'
  1. JBoss Enterprise Spec APIs
  2. JBEE-157

Improper exception handling in org.jboss.com.sun.corba.se.impl.javax.rmi.PortableRemoteObject#narrow()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • jboss-rmi-api
    • None
    • Low

      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.

              smcgowan@redhat.com Shelly McGowan (Inactive)
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: