Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExpressionUtils fails when no type is defined #1

Open
cchet opened this issue Nov 23, 2012 · 0 comments
Open

ExpressionUtils fails when no type is defined #1

cchet opened this issue Nov 23, 2012 · 0 comments

Comments

@cchet
Copy link
Contributor

cchet commented Nov 23, 2012

You have changed the implementation of GenericComparator where the value is now retrieved via

        // Retrieve field values of the objects
        Object value1 = ExpressionUtils.getValue(object1, propertyPath);
        Object value2 = ExpressionUtils.getValue(object2, propertyPath);

formerly

        // Retrieve field values of the objects
        Object value1 = new LazyGetterMethod(object1, propertyPath).invoke();
        Object value2 = new LazyGetterMethod(object2, propertyPath).invoke();

The problem is that we have the DefaultLocalizableModel which is often used within our application.

public class DefaultLocalizableRowModel<I extends Serializable, L extends LocalizableEntity<I, ? extends LocalizedEntity>> extends AbstractLocalizableRowModel<I, L> {

private static final long serialVersionUID = -5522498879203353535L;

}

So the type cannot be retrieved and now every usage of GenericComparator with DefaultLocalizableRowModel will fail.
This is affecting every module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant