Bug 153371 - After a String array is created, eclipse fails to recognize methods for an object.
Summary: After a String array is created, eclipse fails to recognize methods for an ob...
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.3 RC4   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-09 20:46 EDT by Usha CLA
Modified: 2007-06-19 09:52 EDT (History)
1 user (show)

See Also:


Attachments

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