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

IllegalStateException would be more preferable than IOException

    XMLWordPrintable

Details

    • b55
    • generic
    • generic

    Description



      Name: vpR10197 Date: 05/17/2004


      According to specification, new methods setFiexedLengthStreamingMode(int)
      and setChunkedStreamingMode(int) of HttpURLConnection throw IOException
      if URLConnection is already connected. At the same time most of the
      'set' methods of URLConnection throw IllegalStateException in this case.
      It would be great if setFiexedLengthStreamingMode and setChunkedStreamingMode
      would throw IllegalStateException as well instead of IOException.
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              michaelm Michael McMahon
              vitpsunw Vitp Vitp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: