rzo1 opened a new pull request, #194:
URL: https://github.com/apache/openjpa/pull/194

   `treat()` on a join only cast the object, so no type narrowing was applied 
and queries silently returned supertype instances. The join now records the 
narrowed type, which makes attribute resolution work against the subclass and 
the kernel emit the same TREAT discriminator condition as JPQL (OPENJPA-2961); 
a treated root used only in the SELECT clause is now restricted too. Narrowing 
a correlated join and `treat()` on an arbitrary path are rejected with a clear 
`UnsupportedOperationException` instead of silently doing nothing, and 
`TestTreatJoinCriteria` covers both the narrowing and the diagnostics.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to