[
http://mifosforge.jira.com/browse/MIFOS-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59342#action_59342
]
Udai Gupta commented on MIFOS-1512:
-----------------------------------
This patch does show that the hashcode and equal contract is not satisfied for
some persistence entities (where equals() is implemented but hashcode() is
not). The test case is rejected as the contract verification test case should
not be an integration test (see TestUtils.assertEqualsAndHashContract). I am
leaving this issue open for more work in future.
> persistent object equals/hashCode-data model clarification needed
> -----------------------------------------------------------------
>
> Key: MIFOS-1512
> URL: http://mifosforge.jira.com/browse/MIFOS-1512
> Project: mifos
> Issue Type: Bug
> Components: Loan Account
> Affects Versions: Release 1.1
> Environment: Platform: All, OS: All
> Reporter: orionlee
> Assignee: mifosdeveloperqueue
> Priority: Major
> Fix For: Gazelle Backlog
>
> Attachments: issue1512_prdofferingfee_testcase.patch
>
>
> It's a follow-up of issue 1511.
> Here I call out a higher-priority issue: that the following persistent objects
> defines custom equals() without a custom hashCode() implementation.
> OfficeBO
> LoanOfferingFundEntity
> PrdOfferingMeetingEntity
> LoanOfferingFeeEntity
> So it'd be possible that the same persistent entity got added twice in some
> java
> collection incorrectly (HashMap, HashSet, etc.).
> as of 12183,
> - It's confirmed they're added to some Hash-based collection (revealed by
> running unittest against custom code to throw assert error upon running error
> code)
> - unclear yet whether the higher-level code will trigger the code paths that
> surface the bugs in a way that causes serious errors, e.g., incorrectly
> persisting the same LoanOfferingFundEntity object multiple times in the
> database.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues