Community
Participate
Working Groups
Eclipse says that will change the access modifier to public but does not change. package p1; public class A{ protected long k(int a){ return 83; } protected long k(long a){ return 68; } } package p1; public class B extends A{ public long m(){ return super.k(2); } } package p2; import p1.*; public class C extends B { } Step 2: apply the push down method to the method m(). Eclipse will show a warning: The visibility of method 'p1.A.k(int)' will be changed to public. If we press 'continue', Eclipse moves the method to the super class but does not change the visibility of p1.A.k(int). The code still compiles after the change. It seems that the warning was not needed. Or Eclipse should have changed the access modifier of the method.
Tested with Build ID: I20130204-1400. The bug is reproducible.
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.