visual designer generates invalid java code for setContentMode

It generates yyy.setContentMode(3) while the official java type for the argument is Enum. Is there a temp fix? Thanks!!!

This seems to be related to an API difference between Vaadin 6 and Vaadin 7, in this case (setContentMode()) code for the wrong version is generated.

I didn’t see a ticket for this so please
file one
about this.

As a workaround, you could perhaps remove the setContentMode() from your label definition and move the line to non-generated code called from your constructor.