Patch for ClassPath.getClassPath()

Rohan Lloyd <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
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.

Attached is a one line patch that fixes the problem.



-- 
Rohan Lloyd

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.