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

Divesh Dutta commented on OFBIZ-5130:
-------------------------------------

Hi OFbiz community members, 

Please help me to conclude this issue. 

1) Mutual variants set up discussed in this ticket is right or wrong ?

2) Just in case if we conclude that mutual variants set up is wrong, then 
should we do handling in code for such cases where data set up is wrong and you 
do handling in code, so that service does not blow up any thing on server

IMO wrong data set up should be fixed , instead of handling the code in 
services ... 

> 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: Trunk
>            Reporter: Deepak Agarwal
>            Assignee: Ashish Vijaywargiya
>              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 was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to