Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

...and what if my resolver uses round-robin and returns a different IP on each request?


Or if the computer running the JVM doesn't have a reliable network connection? Does the behavior of URL.equals() change if your network connection is down?

... and what happens when you try to compare a URL which contains a nonexistent hostname, like http://asdfghjkl.example.com/ ? Does that compare as equal to all other URLs with unresolvable hostnames?


> if either host name can't be resolved, the host names must be equal without regard to case; or both host names equal to null.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: