| Summary: | [move static members] does not qualify access to static field from supertype [refactoring] | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Brian.Miller, dirk_baeumer |
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
Please investigate. How relevant is the scenario in normal day to day development. It only occurs in setups having a super/sub type as described above. I have to do a fix pass anyway to address bug 81257, which is a related rewriting problem OK. *** Bug 300573 has been marked as a duplicate of this bug. *** 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. |
I20050315-1100 (already in 3.0.2) Move static members does not qualify access to static field from supertype: class Counter { static int fgCount; } class Zaehler extends Counter { static void up() { // move to Target fgCount++; } } class Target { } Was: class Target { static void up() { // move to target fgCount++; } } Expected: class Target { static void up() { // move to target Counter.fgCount++; } } One could argue about rewriting to "Zaehler.fgCount++;", but this would generate code with a warning (depending on the compiler settings).