There are a bunch of questions like this. I went through most of them but none actually but I couldn't come up with any answer:
I have a weird problem in one of my GWT/GWTP classes.
The class compiles fine with the Eclipse compiler but fails with the javac compiler (Maven).
//additional imports
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.View;
public class MyPresenter extends PresenterWidget<MyPresenter.MyView> {
public interface MyView extends View {
}
some code
}
When i try to compile with maven I get following error:
cannot find symbol symbol: class View
View refers to the View
interface in the com.gwtplatform.mvp.client
package.
I have other classes which look the same and work fine.
The weird thing is that if I change the order of the imports or I specify the exact package of the View
interface it compiles without any problems in maven.
To be specific I moved the import for com.gwtplatform.mvp.client.View
import com.gwtplatform.mvp.client.View;
//additional imports
import com.gwtplatform.mvp.client.PresenterWidget;
I had a similar problem some time ago with cyclic inheritance problem between classes which refer to inner classes (worked in eclipse but didn't in javac). However I am not sure if that is the same problem.