Bug 31756

Summary: Code assist: fails inside an array which inside a function call
Product: [Eclipse Project] JDT Reporter: Csaba Horvath <hcs333>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Csaba Horvath CLA 2003-02-13 05:40:56 EST
In the following code:

public class Example
{
	private static final int POS_ABSTRACT = 0;
	private static final int POS_NORMAL = 1;

	public static void main(String[] args)
	{
		int[] k = new int[2];
		int j = k[P<cursor1>];
		System.out.println(k[P<cursor2>]);
	}
}

When I invoke the code assistant in <cursor1> position, the fields are visible 
and everything is OK. But in position <cursor2> only templates are proposed, 
the fields are not listed there. The same is true for methods.
For constructors it seems to work fine (i.e. new Integer(k[P<cursor>)).
Comment 1 David Audel CLA 2003-02-14 04:54:52 EST
Fixed.
Comment 2 David Audel CLA 2003-03-04 11:25:13 EST
Verified.