【发布时间】:2012-03-26 20:21:50
【问题描述】:
我正在开发一个 Spring/Vaadin/Hibernate 应用程序。
一切正常,但我在 Eclipse STS 2.8.1 中仍然有以下错误标记:
The hierarchy of the type BankView is inconsistent
The hierarchy of the type AbstractEntityView is inconsistent
我的观点有以下结构:
public class BankView extends AbstractEntityView {
@Resource private BankService bankService;
public void buildLayout() {
super.buildLayout();
// Use of the service here
}
}
public abstract class AbstractEntityView extends AbstractView {
public void buildLayout() {
verticalLayout = new VerticalLayout();
verticalLayout.setSpacing(true);
verticalLayout.setSizeFull();
setContent(verticalLayout);
super.buildLayout();
}
}
@Configurable(preConstruction = true)
public abstract class AbstractView extends com.vaadin.ui.VerticalLayout {
public AbstractView() {
super();
try {
buildLayout();
}
catch (AccessDeniedException e) { // Spring Security
System.out.println("GTFO !");
}
}
}
是什么导致了这些错误标记?
【问题讨论】:
-
该错误消息通常是由于错误的类路径。尝试重建整个项目,这通常会产生更有用的错误,
-
首先,感谢您的回答;)我已经尝试构建它,没有任何改变。我尝试了 Project > Clean... 它没有用。在我的类路径中,我尝试更改库的顺序,没有任何改变:/
标签: eclipse spring hierarchy vaadin configurable