Bug 683 - Fix URL Usage due to DNS Lookups on equals(..) and hashCode()
Summary: Fix URL Usage due to DNS Lookups on equals(..) and hashCode()
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2
Hardware: All all
: P3 major
Assignee: Sven Gothel
Depends on: 757 820 857
  Show dependency treegraph
Reported: 2013-02-06 23:21 CET by Sven Gothel
Modified: 2013-10-11 20:05 CEST (History)
3 users (show)

See Also:
Type: ---
SCM Refs:
gluegen b98825eb7cfb61aead4a7dff57471cd2d2c26823 gluegen 377d9de1ff1e2fabcd9bb7f65c0318f3c890392c
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2013-02-06 23:21:35 CET
(Thx to Harvey Harrison who pointed this out.)


Dm: The equals and hashCode methods of URL are blocking (DMI_BLOCKING_METHODS_ON_URL)

The equals and hashCode method of URL perform domain name resolution, this can result in a big performance hit. See http://michaelscharf.blogspot.com/2006/11/javaneturlequals-and-hashcode-make.html for more information. Consider using java.net.URI instead.
Comment 1 Julien Gouesse 2013-04-16 10:30:20 CEST
In which classes do we use URLs except TextureIO & AWTTextureIO?
Comment 2 Sven Gothel 2013-06-09 08:57:15 CEST
GlueGen: IOUtil, JarUtil, TempJarCache, .. uses URI instead of URL to remove DNS Lookups etc .

I have not seen further URL usage w/ equals/hash, 
which could trigger a DNS lookup.

If anybody finds those .. pls reopen and report.