Bug 31756 - Code assist: fails inside an array which inside a function call
Summary: Code assist: fails inside an array which inside a function call
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-13 05:40 EST by Csaba Horvath CLA
Modified: 2003-03-04 11:25 EST (History)
0 users

See Also:


Attachments

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