Bug 198865 - [evaluation] evaluation in generic inner class does not work
Summary: [evaluation] evaluation in generic inner class does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2007-08-04 13:23 EDT by jukefox CLA
Modified: 2013-02-28 15:26 EST (History)
4 users (show)

See Also:


Attachments
Test file to reproduce the problem (475 bytes, text/plain)
2007-08-04 13:30 EDT, jukefox CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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