You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I compile generates by QueryDSL 5.0 classes I see JDK 21 compiler throw a lot of warnings like:
QAuditableEntity.java:[32,70] possible 'this' escape before subclass is fully initialized
All of them come from new Xlint option called this-escape, so I would propose either fix that by not calling overridable methods from constructors or adding @SuppressWarnings("this-escape") to all generated constructors.
Steps to reproduce
Have a project with any JPA entity and generate QueryDSL code for it.
Use JDK 21 compiler.
Environment
Querydsl version: 5.0.0
Querydsl module: querydsl-jpa
Database: not related
JDK: 21
Additional details
aven build.
The text was updated successfully, but these errors were encountered:
Observed vs. expected behavior
If I compile generates by QueryDSL 5.0 classes I see JDK 21 compiler throw a lot of warnings like:
All of them come from new Xlint option called
this-escape
, so I would propose either fix that by not calling overridable methods from constructors or adding@SuppressWarnings("this-escape")
to all generated constructors.Steps to reproduce
Have a project with any JPA entity and generate QueryDSL code for it.
Use JDK 21 compiler.
Environment
Querydsl version: 5.0.0
Querydsl module: querydsl-jpa
Database: not related
JDK: 21
Additional details
aven build.
The text was updated successfully, but these errors were encountered: