[
https://issues.apache.org/jira/browse/OFBIZ-5130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571192#comment-13571192 ]
Deepak Agarwal commented on OFBIZ-5130:
---------------------------------------
We can have 'skipProductIdList' . So, we add the product id in this list those have been checked and pass it on to the service.
> getProductCost causes stack overflow if product has mutual variants
> -------------------------------------------------------------------
>
> Key: OFBIZ-5130
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5130> Project: OFBiz
> Issue Type: Bug
> Components: product
> Affects Versions: SVN trunk
> Reporter: Deepak Agarwal
> Priority: Critical
> Labels: crash
> Attachments: OFBiz-5130.patch
>
>
> Cost of product A = 0
> Cost of product B = 0
> B is variant of A and A is variant of B.
> Now getProductCost causes a never ending recursive loop. This causes jvm to exit (prior to Jdk1.6_34, atleast in my knowledge) without any crash dump.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira