Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 178267

Summary: [evaluation] code assist allows expression for array but eval does not work
Product: [Eclipse Project] JDT Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Darin Wright CLA 2007-03-20 10:20:41 EDT
If I have code like this:

		Integer[] ints = new Integer[10];
		for (int i = 0;i < ints.length; i++) {
			ints[i] = new Integer(i);
		}

And I select 'ints' in the variables view, I can write an expression like:

     this[4].floatValue()

Code assist will help me complete 'floatValue()', but executing the expression eval results in:

     "Error: the method flaotValue() is undefined for the type Object"

We should either not allow the completion, or succeed on the evaluation.
Comment 1 Darin Wright CLA 2007-05-03 12:29:39 EDT
not planned for 3.3
Comment 2 Eclipse Genie CLA 2018-11-18 04:57:47 EST
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.