Children entity Qtype fields inherited incorrectly for generic types

Bug #855289 reported by Vladimir Kulev on 2011-09-21
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Please consider this example:

public static class TreeEntity<T extends TreeEntity> {
    public Integer id;
    public T parent;

public static class TestEntity extends TreeEntity<TestEntity> {
    public String name;

Type of QTestEntity.parent is QTreeEntity, but should be QTestEntity. Hibernate itself handles this situation correctly.

Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Fix commited.

Changed in querydsl:
status: New → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Released in 2.2.3

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers