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

QBean doesn't work with superclass' fields #23

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

QBean doesn't work with superclass' fields #23

zaj78 opened this issue Oct 6, 2011 · 1 comment
Labels

Comments

@zaj78
Copy link

@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
Copy link
Member

@timowest timowest commented Oct 23, 2011

Released in 2.2.4

@timowest timowest closed this Oct 23, 2011
jwgmeligmeyling pushed a commit that referenced this issue Dec 28, 2020
Traverse superclasses for a visible class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants