Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-282

Suspect exception cast

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • River_3.0.0
    • com_sun_jini_fiddler
    • None
    • n/a

    Description

      FiddlerImpl does this
      -------------------

      private void handleActivatableInitThrowable(Throwable t) 
                                                  throws IOException,
                                                         ActivationException,
                                                         ConfigurationException,
                                                         LoginException,
                                                         ClassNotFoundException
          {
              handleInitThrowable(t);
              if (t instanceof ActivationException) {
                  throw (ActivationException)t;
              } else if (t instanceof LoginException) {
                  throw (ClassNotFoundException)t;
              } else {
                  throw new AssertionError(t);
              }//endif
      

      -----------------

      the concerning part is

      } else if (t instanceof LoginException) {
                  throw (ClassNotFoundException)t;
      

      if t is an instanceof LoginException, i don't think it can be cast to ClassNotFoundException.

      Attachments

        Activity

          People

            pfirmst Peter Firmstone
            dbrosius David Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: