Community
Participate
Working Groups
I20060512-0010 Given: public class K1 { static class ClassB { public static ClassC C; } static class ClassA { public static ClassB B; } static class ClassC {} public void foo() { ClassA.B.C.toString(); } } With compiler option 'Non static access to static member' set to warning 1. On the warning in 'ClassA.B' Ctrl-1 2. Select 'Change access to static using ClassA' Is: Nothing happens This is not a regression to 3.1.2, the same bug there. May be the cause for Bug 140565.
This meight be a core issue: Change field C to a method C() and the warning is shown on C() and not on B anymore and the quick fix works as expected.
Don't forget to adapt org.eclipse.jdt.ui.tests.quickfix.CleanUpTest.testCodeStyle_Bug140565() when fixing this bug.
*** This bug has been marked as a duplicate of bug 179056 ***
Verified for 3.3 M7 using build I20070427-0010.