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 40344 - [masterfs] AutoMountProvider should use File not String
Summary: [masterfs] AutoMountProvider should use File not String
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: rmatous
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2004-02-21 17:40 UTC by Jesse Glick
Modified: 2008-12-22 18:56 UTC (History)
1 user (show)

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 2004-02-21 17:40:13 UTC
The three methods in
o.n.s.masterfs.AutoMountProvider such as
createFileSystem take a String for the file path,
with this Javadoc:

"Corresponds to java.io.File.getAbstractPath. But
be aware, that this doesn't mean, that such file
must really exist. May also address virtual location."

Besides the fact that there is no such method as
getAbstractPath (getAbsolutePath I guess) this
does not explain why you don't simply use
java.io.File here, since you are referring to a
file path, and that is exactly what File is for. I
can imagine a typical provider would anyway just
wind up creating a File for the path in order to
check its children, etc.
Comment 1 rmatous 2004-02-21 23:30:25 UTC
Agree.
Comment 2 rmatous 2004-04-07 09:18:53 UTC
I suggest the same for org.netbeans.api.masterfs.MountSupport.
Comment 3 Jesse Glick 2004-04-07 16:55:37 UTC
Right.
Comment 4 Marian Mirilovic 2005-01-03 13:10:51 UTC
I guess this won't be fixed for NB4.0 , please evaluate again.
Comment 5 rmatous 2005-01-17 16:28:47 UTC
AutoMountProvider should disappear as soon as possible, I thing there
is no reason temporarily change current friend API.
Comment 6 Marian Mirilovic 2005-12-20 16:17:13 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. 

Thanks in advance.