Caused by: java.lang.ClassCastException: class com.vaadin.mpr.MprUI cannot be cast to class org.vaadin.mprdemo.OldUI (com.vaadin.mpr.MprUI and org.vaadin.mprdemo.OldUI are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @d80243a)
at org.vaadin.mprdemo.MyUI.(MyUI.java:55)
... 58 more
Apparently this is regression due url parameter template feature, since the error does not happen with versions before 14.5.1.
Workaround: add @LegacyUI annotation to OtherView.java
Vaadin versions 14.5.1, 8.12.4
@LegacyUI, @MprTheme, ... annotations do not work with HasUrlParameter
Install and deploy the attached test application
Type http://localhost:8080/other/parameter in address bar and press enter.
Exception with root cause like below is thrown
Caused by: java.lang.ClassCastException: class com.vaadin.mpr.MprUI cannot be cast to class org.vaadin.mprdemo.OldUI (com.vaadin.mpr.MprUI and org.vaadin.mprdemo.OldUI are in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @d80243a) at org.vaadin.mprdemo.MyUI.(MyUI.java:55)
... 58 more
Apparently this is regression due url parameter template feature, since the error does not happen with versions before 14.5.1.
Workaround: add @LegacyUI annotation to OtherView.java
mpr-parameter-bug.zip