Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4466898

HTTP 4xx or 5xx return code throws IOException, not FileNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • generic
    • generic



      Name: krC82822 Date: 06/06/2001


      java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

      JDK 1.3 returns a FileNotFoundException when an HTTP
      return code between 400 and 599 is returned.

      Now, JDK 1.4.0 Beta returns an IOException under the same
      circumstances.

      This is an externally visible behavioral change.

      True, FileNotFoundException is a subclass of IOException, but our code was/is
      specifically checking for both of them separately: first catch the
      FileNotFoundException, then catch the more generic IOException.

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

      6 June 2001, eval1127@eng -- This change is not noted in the Release Notes.
      It probably should be.
      (Review ID: 125905)
      ======================================================================

            asommere Alan Sommerer (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: