Bug 29161 Quickfix can't fix a simple fix [quick fix]
If I have a class like this: public class Foo { private static final String BAR = "bar"; public Foo () { System.out.println(this.BAR); } } There's a light bulb on the 'this.BAR' line, which says "The static field Foo.BAR should be accessed in a static way", but says "No corrections available" when I click on it. The fix is simply removing 'this', ie "this.BAR" becomes only "BAR". It's a very simple correction, I think quick fix should know about it.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);
		String preview= proposal.getCompilationUnitChange().getPreviewContent();
		buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import java.io.FileInputStream;\n");		
		buf.append("import java.io.FileNotFoundException;\n");	
		buf.append("public class E extends FileInputStream {\n");
		buf.append("    public E() throws FileNotFoundException {\n");
		buf.append("        super(\"x\");\n");
		buf.append("    }\n");		
		buf.append("}\n");
		
		assertEqualString(preview, buf.toString());
	}
	
	public void testUncaughtExceptionOnThis() throws Exception {
		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);
		StringBuffer buf= new StringBuffer();
		buf.append("package test1;\n");
		buf.append("import java.io.IOException;\n");		
		buf.append("public class E {\n");
		buf.append("    public E() {\n");
		buf.append("        this(null);\n");		
		buf.append("    }\n");
		buf.append("    public E(Object x) throws IOException {\n");
		buf.append("    }\n");				
		buf.append("}\n");
		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);
		CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);