AlexKovic / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

java.net.URL.equals() #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
java.net.URL.equals() overzealously does name resolution and takes host IP 
into account.

This is an unnecessary overhead and undesired feature for openid's needs: 
string comparision of the normalized form is required for equality 
comparision.

Original issue reported on code.google.com by Johnny.B...@gmail.com on 15 Jul 2008 at 9:39

GoogleCodeExporter commented 8 years ago
For what it's worth, the java.net.URI class does not have this problem.
URIs and URLs can be converted into one another through their toURL()/toURI()
methods.

Original comment by jeremie....@gmail.com on 27 Dec 2009 at 1:17