Code Review 7041800: URI.equals may incorrectly return true with escaped octets
Michael McMahon
michael.x.mcmahon at oracle.com
Thu Sep 1 03:40:41 PDT 2011
On 01/09/11 09:36, Chris Hegarty wrote:
>
> An embarrassing bug in the equal(String,String) private implementation
> method. The Strings compare equal when there is a % in one string, a
> different char in the same place in the other string, but the two
> chars following are the same.
>
> http://cr.openjdk.java.net/~chegar/7041800/webrev.00/webrev/
>
> -Chris.
Change looks fine. I just wonder if the test should go into the existing
mega-test, rather than creating a second file just for this bug?
- Michael.
More information about the net-dev
mailing list