You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Mark Struberg <st...@yahoo.de> on 2009/01/21 18:48:35 UTC

blocking java.net.URL methods

Hi!

I found a really interesting blog about the behaviour of URL#hashCode and URL#equals:

http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html

I'm programming Java since a long time but I actually wasn't aware that iterating over URLs _always_ performs DNS lookups  :(
And yes, we use URLs a lot in our code - but as far as I've seen only for jar and file resources (classpath URLs).

LieGrue,
strub


      

Re: blocking java.net.URL methods

Posted by Gurkan Erdogdu <gu...@yahoo.com>.
Really, it was interesting topic. I will check this.




________________________________
From: Mark Struberg <st...@yahoo.de>
To: openwebbeans-dev@incubator.apache.org
Sent: Wednesday, January 21, 2009 7:48:35 PM
Subject: blocking java.net.URL methods

Hi!

I found a really interesting blog about the behaviour of URL#hashCode and URL#equals:

http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html

I'm programming Java since a long time but I actually wasn't aware that iterating over URLs _always_ performs DNS lookups  :(
And yes, we use URLs a lot in our code - but as far as I've seen only for jar and file resources (classpath URLs).

LieGrue,
strub