Bug 298122 - Exceptions in Console view are incorrectly underlined
Summary: Exceptions in Console view are incorrectly underlined
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 16:24 EST by Gary Gregory CLA
Modified: 2023-11-02 11:31 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Gregory CLA 2009-12-17 16:24:32 EST
Build Identifier: I20091210-1301

Exception class names in the Console view seem to be underlined not based on the Java class name syntax, but rather on a *Exception like pattern. For example the following is underlined:

<longDescription>Exception

Obviously this is not a legal class name.

Reproducible: Always

Steps to Reproduce:
Have a Java program print out the string "<longDescription>Exception"
Comment 1 Darin Wright CLA 2009-12-18 08:50:11 EST
We use the following regular expression to locate exception names in console output. Not sure if this can be improved. We don't resolve the exception to a type unless someone clicks on it - it would be too expensive to resolve them on the fly.

"\w[^\(\s]+Exception[\s|:]"
Comment 2 Gary Gregory CLA 2009-12-18 13:47:02 EST
I think this works better:

"[a-zA-Z_$][a-zA-Z_$0-9\.]+(Exception|Error)[\s|:]"

or even:

"[a-zA-Z_$][a-zA-Z_$0-9\.]+(Exception|Error|Throwable)[\s|:]"

if you want to catch some oddly named ones.
Comment 3 Eclipse Genie CLA 2019-11-20 09:02:23 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Dani Megert CLA 2019-11-21 10:31:38 EST
Sarika, please check whether this is still an issue.
Comment 5 Sarika Sinha CLA 2019-11-21 22:27:44 EST
I can reproduce the problem with  I20191120-1800.

We still use the same regex as mentioned in comment#1
Comment 6 Eclipse Genie CLA 2021-11-11 06:26:27 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2023-11-02 11:31:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.