| Summary: | [select] No selection in static import field | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
| Component: | Core | Assignee: | David Audel <david_audel> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
Reproduced with HEAD fom 20060213 CONSTANT_B should be static to reproduce the problem.
p/A.java==============================
package p;
public class A extends B implements I {}
interface I { int CONSTANT_I = 1; }
class B { static int CONSTANT_B = 1; }
Maybe even if not static, we could be resilient and still find the field as the closestMatch. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
jdtcore v_635 On following example with 2 units: X.java================================ import static p.A.CONSTANT_B; public class X { } p/A.java============================== package p; public class A extends B implements I {} interface I { int CONSTANT_I = 1; } class B { int CONSTANT_B = 1; } Pressing F3 on CONSTANT_B in X's static import rings the bell and doesn't select the matching field.