Bug 460212 - Inspect does not show the result
Summary: Inspect does not show the result
Status: REOPENED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 05:43 EST by Noopur Gupta CLA
Modified: 2024-05-11 05:26 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noopur Gupta CLA 2015-02-18 05:43:01 EST
Eclipse 4.5 N20150216-2000.

- Take the following example and press Ctrl+Shift+O to invoke 'Organize Imports' dialog after setting a breakpoint at the first line of org.eclipse.ui.dialogs.AbstractElementListSelectionDialog.getSelectedElements():

package com.test;

public class A1 {
	Map<String, List<Document>> files;
}

- When the breakpoint is hit, select 'fFilteredList' and press Ctrl+Shift+I to inspect the value of 'fFilteredList'.

I get the message: "Evaluations must contain either an expression or a block of well-formed statements".

Hovering over "fFilteredList" shows the value properly.
Comment 1 Eclipse Genie CLA 2020-03-19 14:24:01 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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 Noopur Gupta CLA 2020-05-19 03:32:04 EDT
Still reproducible with 4.16 latest build.
Comment 3 Sarika Sinha CLA 2020-05-19 04:13:52 EDT
Strange, hover works but not inspect.
Comment 4 Gayan Perera CLA 2020-05-19 14:58:41 EDT
Seems like the problem is this variable is inside the org.eclipse.jdt.internal.debug.eval.ast.engine.ASTEvaluationEngine.getCompiledExpression(String, IJavaStackFrame) this reference. And these reference variables are treated as outer class variables. And these variables are only added to the evaluation engine if they are prefixed with val$. A fix would be to include all variables that we find in this reference in the evaluation engine.
Comment 5 Gayan Perera CLA 2020-05-19 15:01:09 EDT
This works in variable hovering because we have a different logic in how variable hovers are handled. In hovering we read the variables from the current stackframe.
Comment 6 Eclipse Genie CLA 2022-05-17 00:22:49 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 7 Eclipse Genie CLA 2024-05-11 05:26:26 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.