Skip to content

Commit 46afc31

Browse files
SougandhSiloveeclipse
authored andcommitted
Fix line number mismatch during stack trace navigation in the Open Type
window #617 This commit resolves the issue where the line numbers were mis-aligned (n-1) when navigating through a stack trace via the Open Type window. The fix ensures proper synchronization of line numbers, providing an accurate navigation experience. Fixes : #617
1 parent 73e3f47 commit 46afc31

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ public IStatus processAmbiguousResults(List<Object> matches, String typeName, in
292292
processSearchResult(exactMatchesFiltered.get(0), typeName, line);
293293
return Status.OK_STATUS;
294294
} else if (exactMatchesFiltered.size() > 0) {
295-
return openClipboard(exactMatchesFiltered, line, typeName);
295+
return openClipboard(exactMatchesFiltered, ++line, typeName);
296296
} else {
297-
return openClipboard(matches, line, typeName);
297+
return openClipboard(matches, ++line, typeName);
298298
}
299299
}
300300

0 commit comments

Comments
 (0)