[
https://issues.apache.org/jira/browse/FELIX-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840168#action_12840168
]
David Savage commented on FELIX-2151:
-------------------------------------
There's a good reason to avoid URL's if you ever expect to call equals on it
(i.e. it ends up in a hashmap) URL's actually do a reverse dns lookup to
confirm the ip address of the machine is the same - this is the cause of many
nasty bugs. As such I'd always suggest URI over URL.
If you want backwards compatibility may need to use String?
> Use URIs instead of URLs in the API
> -----------------------------------
>
> Key: FELIX-2151
> URL: https://issues.apache.org/jira/browse/FELIX-2151
> Project: Felix
> Issue Type: Improvement
> Components: Bundle Repository (OBR)
> Reporter: Guillaume Nodet
> Assignee: Guillaume Nodet
> Fix For: bundlerepository-1.6.0
>
>
> The reason is that you can then more easily manipulate the URIs without the
> need
> for having the URL handler. For example I'd like to use mvn url handlers for
> resources,
> but manipulating the API outside of OSGi will make it very difficult or even
> parsing the
> repository. When accessing the resources, URI can be converted to URLs quite
> easily,
> checking the needed URL handlers presence as late as possible.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.