Bug 550675 - Debug variables hover does not show value of primitive fields of outer class
Summary: Debug variables hover does not show value of primitive fields of outer class
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.13   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-03 02:53 EDT by Simeon Andreev CLA
Modified: 2023-08-17 00:05 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 Simeon Andreev CLA 2019-09-03 02:53:22 EDT
The fix for bug 317045 caused a ClassCastException in some cases, see bug 550631. This is due to not taking primitive types into account. We have added a cast for bug 550631, but this means there are still cases with synthetic primitive variables that are not being handled. I.e. cases for which bug 317045 is not yet fixed.

The original fix:

https://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=f73f194db9f438bd1a376541e298dbd20e6bd09d

The fix for the ClassCastException:

https://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=e045ffff028c71d51f97538113250975ebb89c66

Probably we need an if-else-if-else with JDI object value, else JDI primitive value, else nothing. But we must understand first how to construct a case like this. Maybe a local class definition that uses outer scope primitive type variables.
Comment 1 Eclipse Genie CLA 2021-08-24 14:04: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 2023-08-17 00:05:25 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.