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

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

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

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

michaelajr opened this issue Oct 20, 2012 · 3 comments

Comments

@michaelajr
Copy link

@michaelajr michaelajr commented Oct 20, 2012

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
Copy link
Author

@michaelajr michaelajr commented 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;

@timowest
Copy link
Member

@timowest timowest commented Oct 30, 2012

Released in 2.8.2

@timowest timowest closed this Oct 30, 2012
@tpischke
Copy link

@tpischke tpischke commented 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.

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

Successfully merging a pull request may close this issue.

None yet
3 participants