Community
Participate
Working Groups
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).
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.