Using Vaadin 8.1 and Spring boot, I get a ClassCastException whenever I try to extend the Element interface, e.g.:
@Tag("div")
public interface Div extends Element {
public static Div empty() {
return Elements.create(Div.class);
}
}
This is the error I get:
java.lang.ClassCastException: Cannot cast org.vaadin.elements.impl.ElementImpl$$EnhancerByCGLIB$$80d7ece3 to *.*.*.Div
at java.lang.Class.cast(Class.java:3369)
at org.vaadin.elements.impl.ElementReflectHelper.wrapElement(ElementReflectHelper.java:115)
at org.vaadin.elements.impl.ElementReflectHelper.wrap(ElementReflectHelper.java:39)
at org.vaadin.elements.Elements.create(Elements.java:42)
...
Any ideas what might be the issue? I also tried with Vaadin 8.0.5, but the error is the same.
Using Vaadin 8.1 and Spring boot, I get a ClassCastException whenever I try to extend the Element interface, e.g.:
This is the error I get:
Any ideas what might be the issue? I also tried with Vaadin 8.0.5, but the error is the same.