Title: Quick fix "Add throws declaration" removes backslashes and qute fragments · Issue #4314 · redhat-developer/vscode-java · GitHub
Open Graph Title: Quick fix "Add throws declaration" removes backslashes and qute fragments · Issue #4314 · redhat-developer/vscode-java
X Title: Quick fix "Add throws declaration" removes backslashes and qute fragments · Issue #4314 · redhat-developer/vscode-java
Description: There are some unwanted changes made by the "Add throws declaration" Quick fix action. If you use the QuickFix action Add throws declarat... the java extension will remove the fragment name of the second Template specification and the es...
Open Graph Description: There are some unwanted changes made by the "Add throws declaration" Quick fix action. If you use the QuickFix action Add throws declarat... the java extension will remove the fragment name of the ...
X Description: There are some unwanted changes made by the "Add throws declaration" Quick fix action. If you use the QuickFix action Add throws declarat... the java extension will remove the fragment na...
Opengraph URL: https://github.com/redhat-developer/vscode-java/issues/4314
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Quick fix \"Add throws declaration\" removes backslashes and qute fragments","articleBody":"There are some unwanted changes made by the \"Add throws declaration\" Quick fix action.\n\n\nIf you use the QuickFix action `Add throws declarat...` the java extension will remove the fragment name of the second Template specification and the escaped backslashes from the string.\n\nBefore executing the QuickFix:\n```java\n String someString = \"Escaped\\\\Test\\\\Path\";\n\n @CheckedTemplate\n static class Templates {\n public static native TemplateInstance page();\n public static native TemplateInstance page$content();\n }\n```\nAfter performing the QuickFix:\n\n```java\n String someString = \"Escaped\\Test\\Path\";\n\n @CheckedTemplate\n static class Templates {\n public static native TemplateInstance page();\n public static native TemplateInstance page();\n }\n```\n\n\nSteps to reproduce:\n1. Clone reproducer repository: https://github.com/LukasLeppich/vscode-java-quickfix-bug\n2. Create a new VSCode Profile\n3. Install the `Extension Pack for Java` extension\n4. Open the `SomePage.java` class and perform the `Add throws declarat...` Quick Fix on line 30 `service.test();`\n\nTested with the following setup:\n```\nVscode:\nVersion: 1.108.1 (user setup)\nCommit: 585eba7c0c34fd6b30faac7c62a42050bfbc0086\nDate: 2026-01-14T14:55:44.241Z\n\nExtensions:\nredhat.java@1.51.0\nvscjava.vscode-gradle@3.17.2\nvscjava.vscode-java-debug@0.58.5\nvscjava.vscode-java-dependency@0.27.0\nvscjava.vscode-java-pack@0.30.5\nvscjava.vscode-java-test@0.44.0\nvscjava.vscode-maven@0.45.1\n```","author":{"url":"https://github.com/LukasLeppich","@type":"Person","name":"LukasLeppich"},"datePublished":"2026-01-21T09:43:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/4314/vscode-java/issues/4314"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a8f4c486-ff47-8c04-3b74-542835846ad0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9F0:D0619:11FA92:16CCE4:699049C9 |
| html-safe-nonce | f7c33bcb9eeb62abc958781b2d901003b866c763d1f5c22dbfd69d2721d829fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUYwOkQwNjE5OjExRkE5MjoxNkNDRTQ6Njk5MDQ5QzkiLCJ2aXNpdG9yX2lkIjoiNTE2MzEwMjU5NDg2MDU5OTc1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3db03647b097a05cb05569b3005d8e29d012032ec80974a98197c13bdfd2b1e7 |
| hovercard-subject-tag | issue:3837419371 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/redhat-developer/vscode-java/4314/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f3a6e78b8e78f375d091004dbeec68d79dc7740c89bd4e956fd40dc2cff361d/redhat-developer/vscode-java/issues/4314 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f3a6e78b8e78f375d091004dbeec68d79dc7740c89bd4e956fd40dc2cff361d/redhat-developer/vscode-java/issues/4314 |
| og:image:alt | There are some unwanted changes made by the "Add throws declaration" Quick fix action. If you use the QuickFix action Add throws declarat... the java extension will remove the fragment name of the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LukasLeppich |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/redhat-developer/vscode-java git https://github.com/redhat-developer/vscode-java.git |
| octolytics-dimension-user_id | 11033755 |
| octolytics-dimension-user_login | redhat-developer |
| octolytics-dimension-repository_id | 65561709 |
| octolytics-dimension-repository_nwo | redhat-developer/vscode-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65561709 |
| octolytics-dimension-repository_network_root_nwo | redhat-developer/vscode-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width