Community
Participate
Working Groups
I have turned on the "Indirect access to static memeber" option for the Java compiler. In CodeCompletionTest in org.eclipse.ui.externaltools.internal.ant.editor.test in org.eclipse.ant.tests.ui project we reference two ProjectHelper classes: one resolved via imports and one as a fully qualified reference. The fully qualified reference makes a static method call on line 196. We get the follow warning: Severity Description Resource In Folder Location Creation Time The static method configureProject(Project, File) from the type ProjectHelper should be accessed directly CodeCompletionTest.java org.eclipse.ant.tests.ui/Ant Editor Tests/org/eclipse/ui/externaltools/internal/ant/editor/test line 196 July 15, 2003 2:33:24 PM (sorry about the formatting)
Reproduced.
Actually, the diagnosis is correct, since it is the superclass which implements the targeted method: org.apache.tools.ant.ProjectHelper #configureProject(Project, File) the subclass #configureProject method doesn't override the same signature (extra String argument) org.eclipse.ant.ui.internal.editor.utils.ProjectHelper #configureProject(Project, File, String) So the diagnosis is actually accurate, but the name collision makes it hard to spot.
Thanks Philippe