Note that what I found is caused by Vaadin. I would like to get Jmix’ perspective on this as the View class implements the Vaadin interfaces.
I installed sonar and started cleaning up my codebase.
I receive errors stating that fields in my Views should be either Serializable or transient. I investigated and found that Vaadin event-related interfaces, such as BeforeEnterObserver, all implement Serializable.
Technically, Sonar is right, Vaadin could serialize the views and their state.
I don’t think I ever saw a single Jmix sample doing this. So, what is the rationale here? Do you just suppress the error -perhaps because in jmix we never serialize since we have no session replication- ?