Community
Participate
Working Groups
I20120314-0800 Test case from bug 357547 comment 0. package p2; public class C { } package p1; import p2.*; public class B extends A { long k(){ return 0; } } package p2; public class A { long k(){ return 1; } public long m(){ return new A().k(); } } I get a warning on B.k() - The method B.k() does not override the inherited method from A since it is private to a different package. Quick fix offered is 'change visibility of A.k to default'. This quick fix is bogus and does not fix the warning.
Looks similar to bug 87239. *** This bug has been marked as a duplicate of bug 87239 ***