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.
Summary: | java.io.IOException: Use FileUtil.createData() instead! Due to "C:\" | ||
---|---|---|---|
Product: | platform | Reporter: | st3vie |
Component: | Data Systems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 176098 |
Attachments: | stacktrace |
Description
st3vie
2011-01-26 13:49:30 UTC
Created attachment 105367 [details]
stacktrace
I guess the name of the shadow that favorites try to create contains "/" or "\\". Such character shall be replaced by something more neutral. Like "_"... This is probably caused by http://hg.netbeans.org/main/rev/e1169459c473 (fix for bug #192222). Filesystems used to return "C:" as the name for the hard-drive while now "C:\" (with the backslash at the end) is returned. I agree it should be replaced with something else, but it's loaders' responsibility, not favorites', i do not specify the shadow's name, it is determined inside data systems. I think the proper place is here: http://hg.netbeans.org/core-main/file/ba0fb1a16d66/openide.loaders/src/org/openide/loaders/DataShadow.java#l343 ergonomics#6f6f2ab093af Integrated into 'main-golden', will be available in build *201102030000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6f6f2ab093af User: Jaroslav Tulach <jtulach@netbeans.org> Log: #194735: Remove \ from Window root names I just tried the latest nightly build *201102030000* and this works now. Thanks! Verified then! |