Summary: | Can't compile because eclipse says that the method is not visible | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Michael Lupp <m.lupp> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | P2 | CC: | eclipse |
Version: | 2.0 | ||
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Whiteboard: |
Description
Michael Lupp
2002-06-28 08:00:37 EDT
Sorry, I think my description was unprecise, so here is an code example: ------------- package AP; public abstract class A { protected AIC memberA; protected class AIC { public void methodAIC(String paramater) { // ....do something } } } ------------- ------------- package BP; public class B extends AP.A { private class BIC { public void methodBIC(String param) { memberA.methodAIC(param); } } } ------------- In ecplise I get the error that the methode 'methodAIC' in 'methodeBIC' ist not visible. Reproduced. Indeed, this sounds like our bug. We had implemented the proper visibility check, but left in the old one which was still being used in this case. Removing the old code is now running through the new code (similar to field and method visibility check). Need to re-run jcks to assess quality. This is quite unfortunate. Fixed in latest internal. *** Bug 22149 has been marked as a duplicate of this bug. *** Verified. Verified Verified in 2.1 M1. |