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

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: