Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-83

Add support for getResource and getResourceAsStream to ClassPath

    XMLWordPrintableJSON

Details

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

      Attachments

        1. ClassPath.patch
          3 kB
          Len Trigg
        2. ClassPath.patch
          4 kB
          Len Trigg

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            lenbok@gmail.com Len Trigg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: