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

Relative URL ../ does not work when context is ./

XMLWordPrintable

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



      Name: rlT66838 Date: 06/18/99


      My applet's codeBase is ./

      I then try to create a relative URL to "../images/foo.gif" but the result is wrong.

      URL u1 = new URL("file:./")
      URL u2 = new URL(u1, "../images/foo.gif")

      the result of the last line is "file:/images/foo.gif" instead of "file:../images/foo.gif"


      (Review ID: 83696)
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: