commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISCOVERY-6) [discovery] Doesn't work with ClassLoaders that do not support getResource()
Date Sat, 09 Apr 2011 22:27:05 GMT

    [ https://issues.apache.org/jira/browse/DISCOVERY-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017975#comment-13017975
] 

Sebb commented on DISCOVERY-6:
------------------------------

Yes, that seems better than throwing NPE.

> [discovery] Doesn't work with ClassLoaders that do not support getResource()
> ----------------------------------------------------------------------------
>
>                 Key: DISCOVERY-6
>                 URL: https://issues.apache.org/jira/browse/DISCOVERY-6
>             Project: Commons Discovery
>          Issue Type: Bug
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Len Trigg
>            Assignee: Simone Tripodi
>             Fix For: 0.5
>
>         Attachments: DiscoverClasses.patch, testcase.jar
>
>
> I am trying to run inside a plugin environment where the plugin ClassLoader
> extracts classes from nested jarfiles. This ClassLoader supports loadClass() and
> getResourceAsStream(), but does not support getResource().
> Discovery assumes that all classes that can be loaded by a ClassLoader can be
> accessed by getResource(), and thus fails in this environment. In my googling, I
> found several people experiencing this problem, but no solutions.
> Is this project still actively maintained?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message