You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (JIRA)" <ji...@apache.org> on 2017/10/17 14:17:00 UTC
[jira] [Created] (NETBEANS-90) URL generated by MemoryFileSystem
invoke DNS resolution in their equals/hashCode
Svatopluk Dedic created NETBEANS-90:
---------------------------------------
Summary: URL generated by MemoryFileSystem invoke DNS resolution in their equals/hashCode
Key: NETBEANS-90
URL: https://issues.apache.org/jira/browse/NETBEANS-90
Project: NetBeans
Issue Type: Bug
Components: platform - Filesystems
Affects Versions: 8.2
Reporter: Svatopluk Dedic
Assignee: Svatopluk Dedic
FileObjects created from MemoryFileSystem use URL format like memory://fs<number>/<path-to-file>. If such URL is added to a map or collection, the default URL.equals attempts to resolve the host path ("fs<number>") which is slow (and fails anyway).
MemoryFileSystem creates an URLStreamHandler, but does not override hashCode/equals for URLs.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)