FlowingCode / GridHelpers

Several grid recipes for Vaadin 23+ (and 22), ready to use. DOES NOT require extending Grid.
https://addonsv23.flowingcode.com/grid-helpers
Apache License 2.0
12 stars 1 forks source link

Vaadin 24 - NoSuchMethodError MenuBar.addThemeVariants #54

Closed javier-godoy closed 1 year ago

javier-godoy commented 1 year ago

Vaadin 24.0.0.alpha9 updates MenuBar to implement HasThemeVariant (https://github.com/vaadin/flow-components/pull/4512) which breaks binary compatibility.

Using ErrorWindowAddon with Vaadin 24.0.0.alpha9+ results in NoSuchMethodError

Caused by: java.lang.NoSuchMethodError: 'void com.vaadin.flow.component.menubar.MenuBar.addThemeVariants(com.vaadin.flow.component.menubar.MenuBarVariant[])'
    at com.flowingcode.vaadin.addons.gridhelpers.ColumnToggleHelper.createMenuToggle(ColumnToggleHelper.java:96)

https://github.com/FlowingCode/GridHelpers/blob/0676d7e8ef1a3d5916aef5d0f8f47067833b31cc/src/main/java/com/flowingcode/vaadin/addons/gridhelpers/ColumnToggleHelper.java#L96