[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2296) Infinite loop in OutputMarshaller

Maciej Prochniak (JIRA) jira-events at lists.jboss.org
Mon Oct 12 08:49:05 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBRULES-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maciej Prochniak updated JBRULES-2296:
--------------------------------------

    Attachment: MarshallFailTest.java


unit test (causes OutOfMemory!)

> Infinite loop in OutputMarshaller
> ---------------------------------
>
>                 Key: JBRULES-2296
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2296
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-core, drools-core  (expert)
>    Affects Versions: 5.1.0.M1
>            Reporter: Maciej Prochniak
>            Assignee: Mark Proctor
>         Attachments: JBRULES-2296, MarshallFailTest.java
>
>
> in OutputMarshaller, there are 2 lines containing:
> for ( LeftTuple childLeftTuple = getLeftTuple( leftTuple.getBetaChildren() ); childLeftTuple != null; childLeftTuple = (LeftTuple) leftTuple.getLeftParentPrevious() ) {
> it leads to infinite loop, should be:
> for ( LeftTuple childLeftTuple = getLeftTuple( leftTuple.getBetaChildren() ); childLeftTuple != null; childLeftTuple = (LeftTuple) childLeftTuple.getLeftParentPrevious() ) {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list