Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 234050

Summary: [quick fix] fix to change constructor visibility quietly fails for default constructor
Product: [Eclipse Project] JDT Reporter: Missing name Mising name <wuntoy>
Component: UIAssignee: 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:

Description Missing name Mising name CLA 2008-05-26 20:20:01 EDT
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.
Comment 1 Olivier Thomann CLA 2008-05-26 21:58:29 EDT
Move to JDT/UI
Comment 2 Markus Keller CLA 2009-11-12 14:38:04 EST
Fix for bug 294893 also fixes this problem.

*** This bug has been marked as a duplicate of bug 294893 ***