Bug 457136 - "Variable values" hover shows constant from source in escaped form
Summary: "Variable values" hover shows constant from source in escaped form
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-09 07:06 EST by Markus Keller CLA
Modified: 2024-05-12 11:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2015-01-09 07:06:35 EST
I20150106-0800

package xy;

public class Try {
    static final String ABC= "abc\\\"";
    public static void main(String[] args) {
        System.out.println(ABC); // breakpoint
    }
}

class NotLoaded {
    static final String DEF= "def\\\""; // hover DEF
}

- set the breakpoint and debug the snippet
- hover over the constant NotLoaded.DEF

=> expected: hover contents should be similar to the hover on Try.ABC
=> was:
- tree label is escaped once too much (""def\\\\\""")
- children of the String object show wrong content
- preview pane shows escaped value

Please use org.eclipse.jdt.core.dom.StringLiteral#getLiteralValue() etc., and don't roll your own escaping/unescaping implementation.
Comment 1 Eclipse Genie CLA 2020-05-26 07:57:34 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.
Comment 2 Eclipse Genie CLA 2022-05-18 14:53:13 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.
Comment 3 Eclipse Genie CLA 2024-05-12 11:40:51 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.