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

ClassPath.getClassPath() does not handle multiple java.ext.dirs entries properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2
    • Main
    • None

    Description

      While running Findbugs (which uses bcel) on Mac OS X, I noticed that the class path returned from
      ClassPath.getClassPath() was incorrect.

      The problem is that on Mac OS X, java.ext.dirs contains 3 different directories. The code searches all 3
      directories for .jar/.zip files to add to path, but then appends each filename to the entire java.ext.dirs
      string, rather than appending it to the directory the file was found in.

      Attachments

        1. ClassPath.patch
          0.7 kB
          Rohan Lloyd

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            apache@rohanl.com Rohan Lloyd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: