You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2014/04/24 14:05:23 UTC
[jira] [Updated] (BCEL-83) Add support for getResource and
getResourceAsStream to ClassPath
[ https://issues.apache.org/jira/browse/BCEL-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg updated BCEL-83:
-------------------------------
Description:
We have used BCEL to implement a ClassLoader that takes a user-defined classpath. Internally it uses a BCEL ClassPath object which is used to construct a Repository. Regular class loading works just fine.
However, when users call getResource or getResourceAsStream, this should be performed with respect to the ClassPath of the ClassLoader. At first I tried using the getInputStream method of ClassPath, but it assumes the input streams are going to correspond to class data.
I have added support for getResource and getResourceAsStream to ClassPath. Patch to be attached.
was:
We have used BCEL to implement a ClassLoader that takes a user-defined
classpath. Internally it uses a BCEL ClassPath object which is used to
construct a Repository. Regular class loading works just fine.
However, when users call getResource or getResourceAsStream, this should be
performed with respect to the ClassPath of the ClassLoader. At first I tried
using the getInputStream method of ClassPath, but it assumes the input streams
are going to correspond to class data.
I have added support for getResource and getResourceAsStream to ClassPath. Patch
to be attached.
Priority: Minor
Environment: (was: Operating System: other
Platform: Other)
Affects Version/s: (was: unspecified)
Fix Version/s: 6.0
Priority: (was: P2)
Issue Type: Improvement (was: Bug)
Severity: (was: normal)
Summary: Add support for getResource and getResourceAsStream to ClassPath (was: [PATCH] Add support for getResource and getResourceAsStream to ClassPath)
> Add support for getResource and getResourceAsStream to ClassPath
> ----------------------------------------------------------------
>
> Key: BCEL-83
> URL: https://issues.apache.org/jira/browse/BCEL-83
> Project: Commons BCEL
> Issue Type: Improvement
> Components: Main
> Reporter: Len Trigg
> Assignee: Apache Commons Developers
> Priority: Minor
> Fix For: 6.0
>
> Attachments: ClassPath.patch, ClassPath.patch
>
>
> We have used BCEL to implement a ClassLoader that takes a user-defined classpath. Internally it uses a BCEL ClassPath object which is used to construct a Repository. Regular class loading works just fine.
> However, when users call getResource or getResourceAsStream, this should be performed with respect to the ClassPath of the ClassLoader. At first I tried using the getInputStream method of ClassPath, but it assumes the input streams are going to correspond to class data.
> I have added support for getResource and getResourceAsStream to ClassPath. Patch to be attached.
--
This message was sent by Atlassian JIRA
(v6.2#6252)