Bug 153371

Summary: After a String array is created, eclipse fails to recognize methods for an object.
Product: [Eclipse Project] JDT Reporter: Usha <usharj>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: david_audel
Version: 3.1.2   
Target Milestone: 3.3 RC4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Usha CLA 2006-08-09 20:46:10 EDT
Type these lines in any program.

String [] abc = new String[] {"a", "b", "c"};
System.

After "System.", eclipse won't list all the available methods.
Comment 1 Frederic Fusier CLA 2006-08-10 07:06:33 EDT
I cannot reproduce with 3.1.2, 3.2 and 3.3.

Here's the test case I used:
public class Test {
	public static void main(String[] args) {
		String [] abc = new String[] {"a", "b", "c"};
		System.<|>
    }
}

Completion at <|> works well and gives all static fields/method of System.
Can you give us a complete class which reproduces the problem?

However, one thing changed since 3.1.2, there's an more compiler error: "System cannot be resolved"... I think this error should not be raised as java.lang.* is imported implicitely.

David, do you think it could be a recovery issue?

Comment 2 David Audel CLA 2007-06-19 09:52:20 EDT
Cannot reproduce using 3.3RC4.
I close this bug as WORKSFORME.