Commit a4c27fb
fix: handle NoSuchMethodError for isMainMethodCandidate() on older JDT Core (#622)
Catch NoSuchMethodError when calling SourceMethod.isMainMethodCandidate()
in ResolveMainClassHandler and ResolveMainMethodHandler. This method was
added in JDT Core 3.36 and is unavailable on older versions, causing
the debugger to fail entirely when resolving main classes.
Fixes microsoft/vscode-java-debug#1598
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Changyong Gong <shawn.gong@hotmail.com>1 parent 07b1e4c commit a4c27fb
File tree
2 files changed
+14
-3
lines changed- com.microsoft.java.debug.plugin/src/main/java/com/microsoft/java/debug/plugin/internal
2 files changed
+14
-3
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
244 | 251 | | |
245 | 252 | | |
246 | 253 | | |
| |||
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
0 commit comments