[
https://issues.apache.org/jira/browse/OFBIZ-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sascha Rodekamp reassigned OFBIZ-4422:
--------------------------------------
Assignee: Sascha Rodekamp
> Using equals() with different object types
> ------------------------------------------
>
> Key: OFBIZ-4422
> URL: https://issues.apache.org/jira/browse/OFBIZ-4422
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Reporter: Dimitri Unruh
> Assignee: Sascha Rodekamp
> Attachments: OFBIZ-4422.patch
>
>
> In the RunningService.java the equals methods is "buggy":
> {code}
> public boolean equals(Object o) {
> if (o != null && o instanceof RunningService) {
> RunningService x = (RunningService) o;
> if (this.model.equals(x) && this.mode == x.getMode() &&
> this.startStamp.equals(x.getStartStamp())) {
> return true;
> }
> }
> return false;
> }
> {code}
> this.model.equals(x) compares to different classes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira