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

URL(URL context, String spec) doesn't work well with '.asp' URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • core-libs
    • beta
    • generic
    • generic



      Name: stC104175 Date: 04/13/2000


      java version "1.2.2"
      Classic VM (build JDK-1.2.2-001, native threads, symcjit)

      (This is taken from a real site)

      The next line:
      URL test = new URL(new URL("http://www.beyondcomputingmag.com/index.asp?
      archive/index.html"), "navigation/navnew.html");

      will construct a URL which is
      http://www.beyondcomputingmag.com/index.asp?archive/navigation/navnew.html

      instead of :
      http://www.beyondcomputingmag.com/navigation/navnew.html

      as it should.
      (Review ID: 103644)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            stompkinsunw Sean Tompkins (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: