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

Add parent type processing for ClassPath class.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.0
    • Main
    • None

    Description

      We have developed an application that byte-code enhances classes using BCEL. The application allows for users to pass additional classpath entries on top of the current system class path settings. When we use the ClassPath instance to create a SyntheticRepository instance. We are unable to include a parent type ClassPath. It is possible that some of the classes are referenced by the system class path. While others are only contained within the passed classpath. To get around this issue. We would have to prepend or append the setting of the java.class.path properties. This can be troublesome since we do not know if the system classpath should be prepended or appended. The other issue is that this can be used within a running application and users might enhance classes not contained within the system class path before using them. These classes can not be loaded by the system ClassLoader. If they are then the byte-code enhanced class can not be used.

      I have a fix that extends the ClassPath class to include the concept of a parent ClassPath. The parent instance is used exactly like the parent concept for a class loader.

      Attachments

        1. patch.txt
          3 kB
          Claudio Corsi

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            ccorsi@progress.com Claudio Corsi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: