| Summary: | Calling Equal on an EntityManagerFactoryBuilder causes ClassCastException | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Gemini.JPA | Reporter: | Christoph Laeubrich <laeubi> | ||||
| Component: | Core | Assignee: | Michael Keith <michael.keith> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | gunnar | ||||
| Version: | unspecified | Flags: | michael.keith:
iplog+
|
||||
| Target Milestone: | 1.1.0 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Christoph Laeubrich
Created attachment 208999 [details]
patch for handling calls to equals method
The attached patch should fix the issue. It adds handling of the #equals method.
Maybe you want handling the hashCode method also, I'm not sure if there is any issue with this, but normally if you hand over the equals to the proxy you should also use hashCode of the proxy to be consistent with the general contract of hashcode/equals. Handling for hashCode as well as toString is already implemented in the proxy. Right haven't seen that, thanks for the patch hopefully someone is applying it soon :) Merged in. Thanks for the bug report and for the fix. Fixed. |