Skip to content

Debugger should use proper decompiled classes URIs #623

Description

@fbricon

following eclipse-jdtls/eclipse.jdt.ls#3666, this code:

private static String getFileURI(IClassFile classFile) {
String packageName = classFile.getParent().getElementName();
String jarName = classFile.getParent().getParent().getElementName();
try {
return new URI(JDT_SCHEME, "contents", PATH_SEPARATOR + jarName + PATH_SEPARATOR + packageName
+ PATH_SEPARATOR + classFile.getElementName(), classFile.getHandleIdentifier(), null)
.toASCIIString();
} catch (URISyntaxException e) {
return null;
}
}

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)

Activity

  1. github-actions commented on Mar 30, 2026

    @github-actions

    Hi Fred Bricon (@fbricon), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

    Solution

    Other references with high confidence

    Other references with low confidence

    The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

  2. added a commit that references this issue on Mar 30, 2026
    bb3017a
  3. added a commit that references this issue on Mar 30, 2026
    07b1e4c
  4. wenytang-ms commented on Mar 31, 2026

    @wenytang-ms
    Contributor

    shipped the pre-release for vscode java to fix this issue.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions