This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 2187 - NbClassPath.createRepositoryPath does not appear to handle != 1 repo path entries correctly.
Summary: NbClassPath.createRepositoryPath does not appear to handle != 1 repo path ent...
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-06-10 07:10 UTC by Jesse Glick
Modified: 2008-12-23 10:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 1999-06-10 07:10:42 UTC
If a file system supports repo paths in general (does not throw EnvironmentNotSupportedException) but currently has no class path entries, or more than one--the class path string will get a null in
it, or all but the first will be lost. Or so it appears from the code.


toFile looks like it would suffer from the same problem (but there is no good solution if >1?). Also, toFile does not correctly handle file objects from JAR files: it will return a File such as .../fo
o.jar/some/path.txt. It should probably check to see that the class path item is really a directory.

Should FileSystem.Environment have a method setRootDirectory(File) which clearly indicates that (1) the file system is really based on a directory root, like LocalFileSystem, and (2) what that root is
?
Comment 1 Marek Grummich 2000-07-25 09:24:59 UTC
Priority is changed to P4 (normal).
Comment 2 Quality Engineering 2003-07-02 15:23:18 UTC
Resolved for 3.4.x or earlier, no new info since then -> verify.

Comment 3 Quality Engineering 2003-07-02 15:44:09 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.