Skip to content

Vaadin 25: NoSuchMethodError: 'com.vaadin.flow.function.SerializableFunction com.vaadin.flow.component.grid.Grid.getClassNameGenerator()' #148

Description

@paodb

Describe the bug

Caused by: java.lang.NoSuchMethodError: 'com.vaadin.flow.function.SerializableFunction com.vaadin.flow.component.grid.Grid.getClassNameGenerator()'
at com.flowingcode.vaadin.addons.gridhelpers.GridHelper.(GridHelper.java:99)
at com.flowingcode.vaadin.addons.gridhelpers.GridHelper.getHelper(GridHelper.java:116)
at com.flowingcode.vaadin.addons.gridhelpers.GridHelper.setHidingToggleCaption(GridHelper.java:317)
at com.flowingcode.vaadin.addons.gridhelpers.AllFeaturesDemo.(AllFeaturesDemo.java:78)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:198)
... 93 more

Expected behavior

setClassNamegenerator was deprecated and now removed in Vaadin 25, setPartNameGenerator should be used instead (see docs https://vaadin.com/docs/v25/upgrading#grid)

Minimal reproducible example

https://addonsv25-staging.flowingcode.com/grid-helpers/all-features

Add-on Version

1.5.0-SNAPSHOT

Vaadin Version

25.0.0-beta7

Additional information

Grid Exporter 2.5.3-SNAPSHOT also breaks as it has GridHelpers as dependency.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions