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

new URI("x/").resolve("..").getSchemeSpecificPart() returns null!

XMLWordPrintable

    • b01
    • x86
    • windows_vista

        FULL PRODUCT VERSION :
        java version "1.7.0_07"
        Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
        Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.0.6002]

        A DESCRIPTION OF THE PROBLEM :
        new URI("x/").resolve("..").getSchemeSpecificPart() returns null!

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run the code above.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        new URI("x/").resolve("..").getSchemeSpecificPart() should return an empty string.
        ACTUAL -
        new URI("x/").resolve("..").getSchemeSpecificPart() returns null!

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import java.net.URI;

        public class Test {
            public static void main(String[] args) {
                System.out.println(new URI("x/").resolve("..").getSchemeSpecificPart() );
            }
        }
        ---------- END SOURCE ----------

              kravikumar Kiran Sidhartha Ravikumar (Inactive)
              robm Robert Mckenna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: