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

QBean doesn't work with superclass' fields #23

Closed
zaj78 opened this Issue Oct 6, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@zaj78

zaj78 commented Oct 6, 2011

If i create a QBean using new QBean(myType, true, Map<String, ? extends Expression<?>> bindings);, it doesn't see the fields of the superclass of myType.
The prblem is in initFields():

Class beanType = type;
while (!beanType.equals(Object.class)){
    try {
       Field field = type.getDeclaredField(property);  // Should be "Field field = beanType..."
       ...
    } catch (NoSuchFieldException e) {
        beanType = beanType.getSuperclass();
    }
}

timowest added a commit that referenced this issue Oct 7, 2011

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 23, 2011

Member

Released in 2.2.4

Member

timowest commented Oct 23, 2011

Released in 2.2.4

@timowest timowest closed this Oct 23, 2011

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