Project: JDT
Bug 26546 In/correct quick fix for non-static access to static member [quick fix]
Reported: 2002-11-16 13:57:43 | Status: resolved fixed

I have classes like so: com.me.Common extends org.junit.TestCase and com.me.MyTest extends Common. In my test, I have JUnit assertXXX calls coded like so: this.assertXXX(...); I therefore get warnings for non-static access to static members, which is nice! The quick fix changes this: this.assertXXX(...); to this: MyTest.assertXXX(...); I was expecting: Assert.assertXXX(...); Any thoughts? Aside from the quick fix wouldn't Assert... be "more correct"?

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java