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.
* @since 8.25
*/
public static URI toURI(File f) {
URI u;
URI u = f.toURI();
try {
// try {
u = f.toPath().toUri();
// u = f.toPath().toUri();
} catch (java.nio.file.InvalidPathException ex) {
// } catch (java.nio.file.InvalidPathException ex) {
u = f.toURI();
// u = f.toURI();
LOG.log(Level.FINE, "can't convert " + f + " falling back to " + u, ex);
// LOG.log(Level.FINE, "can't convert " + f + " falling back to " + u, ex);
}
// }
if (u.toString().startsWith("file:///")) {
// #214131 workaround