Summary: | code assist displays static members on non-static expressions | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Genady Beryozkin <eclipse> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 2.1 M4 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Genady Beryozkin
2002-11-08 09:43:33 EST
The compiler optionally warns you that this is a bad idea. However, it is still legal in Java. Such completions should though always be less relevant than the non-static ones. David - please consider this relevance improvement (and possibly an option to prevent them completely too). relevance improvement: when member is non-static then relevance is higher. In the following example 'var2' is more relevant than 'var1' ('var2' is the first proposal). public class X { static int var1; int var2; void foo() { this.var<cursor> } } Fixed. Verified. Great! I will check it. |