| Summary: | [quick fix] fix to change constructor visibility quietly fails for default constructor | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Missing name Mising name <wuntoy> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | daniel_megert, markus.kell.r, martinae, Olivier_Thomann |
| Version: | 3.4 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
Move to JDT/UI Fix for bug 294893 also fixes this problem. *** This bug has been marked as a duplicate of bug 294893 *** |
Build ID: 3.4 RC2 public final class Outer { public static void method() { new Inner(); } private static class Inner { } } In the above "new Inner()" gives the warning: "Access to enclosing constructor Outer.Inner() is emulated by a synthetic accessor method. Increasing its visibility will improve your performance" But selecting the quick fix "Change modifier of Inner() to default visibility" has no effect. Manually adding the constructor "private Inner(){}" allows the quick fix to work as expected. The quick fix should not be proposed if it cannot fix the problem.