Bug 565652 - Incorrect Declared Type shown Expressions View
Summary: Incorrect Declared Type shown Expressions View
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-29 10:20 EDT by dave debugger CLA
Modified: 2023-02-14 13:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dave debugger CLA 2020-07-29 10:20:29 EDT
In the Variables View, variables currently on the stack are shown. Suppose you have the class Toy as a superclass of ShinyToy. In a method in ShinyToy you have:

Toy myToy = this;
and you can see, when you're in the Debug Perspective on a breakpoint on that line:

Value: ShinyToy
Actual Type: ShinyToy
Declared Type: Toy

This is all as expected.

But if you try and Watch myToy - either from right clicking on that line in the source, or from the Variables View, it ends up in the Expressions view, but with the same value for both Declared Type and Actual Type - that of the superclass, ShinyToy. Why is it not correctly showing a Declared Type of Toy? Is this a bug, or am I missing something?

(I'm using the latest version of Eclipse: Version: 2020-06 (4.16.0) Build id: 20200615-1200) on Windows 10).
Comment 1 Eclipse Genie CLA 2023-02-14 13:07:08 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.