JPAAnnotationProcessor produces uncompilable code #251

Closed
dusanmsk opened this Issue Oct 19, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@dusanmsk

Hi,

I am trying to migrate our legacy jpa2 project to querydsl, but can't compile generated Q-classes.

I tried to isolate a problem to simple example project:
https://docs.google.com/open?id=0B_7bCz1jc_1eQXJtMGI0VVA5VU0

Seems that querydsl parser has problem with:
public abstract class AbstractCatalog extends AbstractEntity {

... because removing T template ( public abstract class AbstractCatalog extends AbstractEntity )
compiles ok.

Is it possible to fix it?

Thank you.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 19, 2012

Member

Querydsl doesn't support raw usage of generic supertypes, you need to fix for example the following case

ChatMessagePrivacy extends AbstractCatalog

into this

ChatMessagePrivacy extends AbstractCatalog<CatalogCode>

or something comparable.

Member

timowest commented Oct 19, 2012

Querydsl doesn't support raw usage of generic supertypes, you need to fix for example the following case

ChatMessagePrivacy extends AbstractCatalog

into this

ChatMessagePrivacy extends AbstractCatalog<CatalogCode>

or something comparable.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 19, 2012

Member

I will though make sure that generated classes will compile.

Member

timowest commented Oct 19, 2012

I will though make sure that generated classes will compile.

@dusanmsk

This comment has been minimized.

Show comment
Hide comment
@dusanmsk

dusanmsk Oct 19, 2012

Thx for fast response.

I've tried some quick refactoring and it seems that it was the point of the problem. I'll try to refactor all wrong declarations in our project on monday and we will see.

Have a nice weekend.

Thx for fast response.

I've tried some quick refactoring and it seems that it was the point of the problem. I'll try to refactor all wrong declarations in our project on monday and we will see.

Have a nice weekend.

timowest added a commit that referenced this issue Oct 22, 2012

@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

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