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.
Refiling from bug #46813 comment #90 at jtulach's request. Trivial to reproduce: open some nb.org project from a UNC path, start running tests, and there are various errors. All parts of the codebase which call File.toURI or new File(URI) need to be fixed, since these methods are known to be broken.
*** Bug 213351 has been marked as a duplicate of this bug. ***
*** Bug 213352 has been marked as a duplicate of this bug. ***
Created attachment 120453 [details] Proposed patch API methods added to Utilities, plus usages. Still being tested.
Please review.
Also need to delete some old code in FileUtil which specifically prevented UNC paths from working in toFileObject.
Created attachment 120455 [details] Updated patch
Probably need to have an accelerated review; otherwise this would be committed right before code freeze.
Seems good to me. Maybe extending the Javadoc form: * Unlike {@link File#toURI} the result works with {@link URI#normalize()}. to: * Unlike {@link File#toURI} the result works with {@link URI#normalize()} and {@link URI#resolve}. The resolve calls normalize but it's more used. Not important.
(In reply to comment #8) > extend the Javadoc form Will do. I will aim to integrate Monday if there are no objections.
Y01 I don't understand why this method should be part of Utilities and not FileUtil? It deals with File, so keep it in FileUtil, if it has to exist at all. In other cases we are extracting methods from Utilities (like ImageUtilities), so adding new methods in there and changing whole code base to use them seems like a step backwards.
Y01 - because it is used from o.n.bootstrap. Anyway it is more like a placeholder for JDK 7 core functionality (to be deprecated when switching to JDK 7 baseline) than a special Filesystems-related API.
Looks OK to me too. Thanks.
core-main #5951a50a6f9a
*** Bug 213563 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201206140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c7083da15ba5 User: Jesse Glick <jglick@netbeans.org> Log: More Utilities.hint (#213562).
*** Bug 214906 has been marked as a duplicate of this bug. ***
*** Bug 216120 has been marked as a duplicate of this bug. ***
This ticket was closed as fixed months ago. Where can I get a compiled build to test? I got build 201209140001 at http://bits.netbeans.org/dev/nightly/ following comment 15 and there's still no trace of code intelligence if files are located in a UNC path :-?