Bug 198865

Summary: [evaluation] evaluation in generic inner class does not work
Product: [Eclipse Project] JDT Reporter: jukefox <jukefox>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, jnbu, livarcocc, Michael_Rennie
Version: 3.3Keywords: bugday, helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Test file to reproduce the problem none

Description jukefox CLA 2007-08-04 13:23:33 EDT
When debugging within a constructor / method within an inner nested class that uses generics defined by its' surrounding class, the debugger was not able to resolve any member variables, parameters or other expressions. The result in all cases was:
"Evaluations must contain either an expression or a block of well-formed statements"

This bug might be a duplicate of / has been fixed with Bug 184862, but I think it's different. If so, don't hesitate and close it.
Comment 1 jukefox CLA 2007-08-04 13:30:23 EDT
Created attachment 75378 [details]
Test file to reproduce the problem

Use the file attached and enable a breakpoint on line 14. After that run the program in debug mode to jump to the breakpoint. Then you should try resolve the parameter t using the Watch-view. The result should be the same error as listed in the ticket-description.
Comment 2 Curtis Windatt CLA 2007-09-12 13:02:20 EDT
Confirmed that problem exists and is not fixed by 184862.  Marking as a bug day candidate in case some one wants to learn about evaluations.
Comment 3 Livar Cunha CLA 2008-07-25 19:06:02 EDT
I can go ahead I give it a try.
Comment 4 Eugene CLA 2010-07-08 04:57:43 EDT
Same bug appears in helios, even in non-generic class.
Comment 5 Michael Rennie CLA 2013-02-28 15:26:31 EST
This works for me in:

Version: 4.3.0
Build id: I20130224-2000

Using the steps mentioned in comment #1, I also:
1. used the display editor action on't'
2. used the inspect editor action on 't'
3. used var value hovers on 't'
4. inspect / watch from the var view on 't'

All worked as expected.

Closing worsforme