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.

View | Details | Raw Unified | Return to bug 246438
Collapse All | Expand All

(-)a/openide.util/src/org/openide/util/Utilities.java (-7 / +7 lines)
Lines 3111-3123 Link Here
3111
     * @since 8.25
3111
     * @since 8.25
3112
     */
3112
     */
3113
    public static URI toURI(File f) {
3113
    public static URI toURI(File f) {
3114
        URI u;
3114
        URI u = f.toURI();
3115
        try {
3115
//        try {
3116
            u = f.toPath().toUri();
3116
//            u = f.toPath().toUri();
3117
        } catch (java.nio.file.InvalidPathException ex) {
3117
//        } catch (java.nio.file.InvalidPathException ex) {
3118
            u = f.toURI();
3118
//            u = f.toURI();
3119
            LOG.log(Level.FINE, "can't convert " + f + " falling back to " + u, ex);
3119
//            LOG.log(Level.FINE, "can't convert " + f + " falling back to " + u, ex);
3120
        }
3120
//        }
3121
        if (u.toString().startsWith("file:///")) { 
3121
        if (u.toString().startsWith("file:///")) { 
3122
            try {
3122
            try {
3123
                // #214131 workaround
3123
                // #214131 workaround

Return to bug 246438