Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
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.