Consider the following: import java.net.*; public class Test { public static void main(String[] args) throws Exception { URI uri1 = new URI("http://host/a%00"); URI uri2 = new URI("http://host/aZ00"); System.out.println(uri1.equals(uri2)); } } It incorrectly prints true with jdk7-b140 (same thing for all previous releases)
|