> Went ahead and restored the previous behavior where the QueryImpl  
> itself checks for non-uniqueness and throws the expected exception.

That breaks the single result optimization that was added for  
OPENJPA-168 when getSingleResult() is called.  There was a reason we  
moved the validation to the kernel.  The previous code was correct.   
You need to use the "hard" way of creating new exception types.

Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

Reply via email to