| Summary: | [quick fix] "Add unimlemented methods" generate methods with default visibility | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Christian Schwarz <chriss.dev> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | deepakazad, Olivier_Thomann |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Move to JDT/UI The quick fix works correctly for me with the given snippet. Please reopen if you have more information/different snippet. Ok likely a duplicate of bug 387940. *** This bug has been marked as a duplicate of bug 387940 *** |
The quickfix "Add unimlemented methods" generate methods methods with default visibility when the interface to be implemented contains methods without visibility modifier. interface I{ //no need for a 'public' modifier, it must be public anyway void doIt(); } class C implements I { //Error: Cannot reduce the visibility of the inherited method from I doIt(){ //the generated method } }