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 ----------
|