Community
Participate
Working Groups
When you type class (inside a class) and '.', code completions shows all the methods of the current class.which are sintaticaly wrong.
Code completion is computed by JDT/Core.
Can you please provide: build number, and exact steps to reproduce ?
I can reproduce this behavior with the following test case public class A { void foo() { class.<cursor> } } In this completion 'class.' is ignored because it is syntaxicaly wrong at this location. So the completion engine considered source as public class A { void foo() { <cursor> } } The result is the same with code like public class A { void foo() { for.<cursor> #.<cursor> =.<cursor> =<cursor> } } Currently this behavior is considered as correct. Perhaps it can be improved. What kind of behavior do you expect with this test case ?
that's ok, I didn't tested with other characters. I thought eclipse couldn't show completions for wrong statements. Thanks for your attention Emerson
Closed