diff options
author | Andrey Loskutov | 2020-10-08 07:51:12 +0000 |
---|---|---|
committer | Andrey Loskutov | 2020-10-08 07:51:12 +0000 |
commit | 2f1c558935fde3265f976623e9ac81d20e92c405 (patch) | |
tree | d9debc50acda333509a42d5a83ee4678b96324c2 | |
parent | 91ca97311c9424031826c33bac43fcb9fbaac274 (diff) | |
download | eclipse.jdt.debug-I20201009-0800.tar.gz eclipse.jdt.debug-I20201009-0800.tar.xz eclipse.jdt.debug-I20201009-0800.zip |
Bug 567698 - Java stack trace console can't find types if the lineY20201011-1200Y20201010-1200Y20201009-1200I20201012-0750I20201011-1800I20201010-1800I20201009-1800I20201009-0800I20201009-0430
starts with tab
Search not only for spaces, but also for tabs - and trim the result to
avoid white space in the link.
Change-Id: I2df23d8ba0c9b2e7b65e6e6d4b0efd0e42260e99
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r-- | org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java index 4a1819abe..aeeba2c90 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java +++ b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/console/JavaStackTraceHyperlink.java @@ -314,8 +314,11 @@ public class JavaStackTraceHyperlink implements IHyperlink { int linkEnd = line.indexOf(')', regionOffsetInLine); int linkStart = line.lastIndexOf(' ', regionOffsetInLine); + if (linkStart == -1) { + linkStart = line.lastIndexOf('\t', regionOffsetInLine); + } - return line.substring(linkStart==-1?0:linkStart+1,linkEnd+1); + return line.substring(linkStart==-1?0:linkStart+1,linkEnd+1).trim(); } catch (BadLocationException e) { IStatus status = new Status(IStatus.ERROR, JDIDebugUIPlugin.getUniqueIdentifier(), 0, ConsoleMessages.JavaStackTraceHyperlink_Unable_to_retrieve_hyperlink_text__8, e); throw new CoreException(status); |