Project: JDT
Bug 138325 [quick fix] Qualify unqualfied field access not applicable
Reported: 2006-04-25 06:20:20 | Status: resolved fixed

N20060423-0010 Given: package test; public class E<I> { private int i; public void foo() { System.out.println(i); } } With unqualified field accesses set to warning 1. Ctrl-1 on the warning at 'i' Is: No quick fix to qualify 'i' is avilable Sould: Qualify with 'this' Same for: public class Klass<T> { public int i; public void foo() { Runnable runnable = new Runnable() { public void run() { System.out.println(i); } }; } } No Quick fix proposal is shown for i access. The same holds for the 'Qualify non static field and method accesses' clean up.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/CodeStyleFix.java