argument is not within bounds of type-variable Q #254

Closed
michaelajr opened this Issue Oct 20, 2012 · 3 comments

Comments

Projects
None yet
3 participants
@michaelajr

Not sure if this is related to #247 or not, but I'm still getting an error in Q objects that have my Path class in them.

My Location.class has...

private Set<Path>  neighborhoodPaths;

The QLocation.class gets generated like this:

public final SetPath<Path, QPath> neighborhoodPaths = this.<Path, QPath>createSet("neighborhoodPaths", Path.class, QPath.class, PathInits.DIRECT);

And I get a compile error:

error: type argument QPath is not within bounds of type-variable Q
  where Q,E are type-variables:
    Q extends SimpleExpression<? super E> declared in class SetPath
    E extends Object declared in class SetPath
@michaelajr

This comment has been minimized.

Show comment
Hide comment
@michaelajr

michaelajr Oct 20, 2012

Sorry... looks like the generics are not being displayed in the comment. Using curly braces.

My Location.class has...

private Set{Path} neighborhoodPaths;

Sorry... looks like the generics are not being displayed in the comment. Using curly braces.

My Location.class has...

private Set{Path} neighborhoodPaths;

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 30, 2012

Member

Released in 2.8.2

Member

timowest commented Oct 30, 2012

Released in 2.8.2

@timowest timowest closed this Oct 30, 2012

@tpischke

This comment has been minimized.

Show comment
Hide comment
@tpischke

tpischke Jul 14, 2014

This problem seems to be back in the querydsl 3.4.1.

In 2.8.2, the following was generated:

//inherited
public final SetPath<HidaBez<?, ? extends HidaBezGruppe<?, ? extends HidaBez<?, ? extends HidaBezGruppe<?, ?>>>>, QHidaBez> bez;

In 3.4.1, we get:

//inherited
public final SetPath<HidaBez, QHidaBez> bez;

Which does not compile with the error mentioned above.

This problem seems to be back in the querydsl 3.4.1.

In 2.8.2, the following was generated:

//inherited
public final SetPath<HidaBez<?, ? extends HidaBezGruppe<?, ? extends HidaBez<?, ? extends HidaBezGruppe<?, ?>>>>, QHidaBez> bez;

In 3.4.1, we get:

//inherited
public final SetPath<HidaBez, QHidaBez> bez;

Which does not compile with the error mentioned above.

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