This is an automated email from the ASF dual-hosted git repository.

entl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a29c23  Convert source path to URI String.
0a29c23 is described below

commit 0a29c233239a2ecd321f83534694c50ac477cbf0
Author: Martin Entlicher <martin.entlic...@oracle.com>
AuthorDate: Sat Jan 8 01:59:24 2022 +0100

    Convert source path to URI String.
---
 .../netbeans/modules/java/lsp/server/debugging/NbSourceProvider.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbSourceProvider.java
 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbSourceProvider.java
index 35167ee..a305a0c 100644
--- 
a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbSourceProvider.java
+++ 
b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/debugging/NbSourceProvider.java
@@ -125,7 +125,7 @@ public final class NbSourceProvider {
                 for (String path : sourcePaths) {
                     Path fullpath = Paths.get(path, relativeSourcePath);
                     if (Files.isRegularFile(fullpath)) {
-                        uri = fullpath.toString();
+                        uri = fullpath.toUri().toString();
                         break;
                     }
                 }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to