following eclipse-jdtls/eclipse.jdt.ls#3666, this code:
| privatestaticStringgetFileURI(IClassFileclassFile) { |
| StringpackageName = classFile.getParent().getElementName(); |
| StringjarName = classFile.getParent().getParent().getElementName(); |
| try { |
| returnnewURI(JDT_SCHEME, "contents", PATH_SEPARATOR + jarName + PATH_SEPARATOR + packageName |
| + PATH_SEPARATOR + classFile.getElementName(), classFile.getHandleIdentifier(), null) |
| .toASCIIString(); |
| } catch (URISyntaxExceptione) { |
| returnnull; |
| } |
| } |
should be replaced by return JDTUtils.toUri(classFile);
I think it should be the proper fix for redhat-developer/vscode-java#4356
cc Changyong Gong (@chagong)
following eclipse-jdtls/eclipse.jdt.ls#3666, this code:
java-debug/com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal/JdtSourceLookUpProvider.java
Lines 468 to 478 in 26b05eb
should be replaced by
return JDTUtils.toUri(classFile);I think it should be the proper fix for redhat-developer/vscode-java#4356
cc Changyong Gong (@chagong)