You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2011/09/08 18:14:09 UTC

[jira] [Commented] (OFBIZ-4398) infinite recursive loop

    [ https://issues.apache.org/jira/browse/OFBIZ-4398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100421#comment-13100421 ] 

Adrian Crum commented on OFBIZ-4398:
------------------------------------

Actually, the code could be simplified further to:

{code}
public boolean equals(Object obj) {
    return this == obj;
}
{code}

if there are no other tests for equality.


> infinite recursive loop
> -----------------------
>
>                 Key: OFBIZ-4398
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4398
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Dimitri Unruh
>         Attachments: ArtifactInfoBase.java.patch
>
>
> The equals method in ArtifactInfoBase.java unconditionally invokes itself. This is an infinite recursive loop that will result in a stack overflow.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira