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

Invalid URI aftter calling resolve()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 11, 14
    • core-libs
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Resolving a relative path to a URI without any path results in an invalid URI

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      new URI("http://test.com").resolve( "path" ).toString()

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      http://test.com/path
      ACTUAL -
      http://test.compath

      ---------- BEGIN SOURCE ----------
      assert new URI("http://test.com").resolve( "path" ).toString().equals("http://test.com/path")
      ---------- END SOURCE ----------

      FREQUENCY : always


            dfuchs Daniel Fuchs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: