-
Notifications
You must be signed in to change notification settings - Fork 92
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
[#857] Fix some regressions in JPQLNext parser #862
[#857] Fix some regressions in JPQLNext parser #862
Conversation
.../src/main/java/com/blazebit/persistence/parser/expression/JPQLNextExpressionVisitorImpl.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but you missed a few cases
- com.blazebit.persistence.view.impl.objectbuilder.mapper.AbstractCorrelationJoinTupleElementMapper#AbstractCorrelationJoinTupleElementMapper
- com.blazebit.persistence.view.impl.PrefixingQueryGenerator#prefix
- com.blazebit.persistence.view.impl.objectbuilder.ViewTypeObjectBuilderTemplate#getCorrelationBasisType
Also, please add a test for this
Not really, the cases that you mention did not change compared to before your parser rework commit so I did not touch them. |
True but the cases I mentioned should also allow object results. |
Ok, I will apply the changes then.
Expression caching itself is a bug at the moment. The cache keys need to consider the various flags that influence behavior of parsing and the expression visitor which is currently not the case. If it was implemented that way, those regressions (and possibly the additional cases you mentioned) would have come up with the existing tests I think. I can fix the expression caching in the course of this issue. |
Please create constants for the bit masks |
Checkstyle issues: https://travis-ci.org/Blazebit/blaze-persistence/jobs/592945474#L953 |
33a84d7
to
fc7db50
Compare
4961369
to
84c82f2
Compare
Fixes #857