[jboss-jira] [JBoss JIRA] Commented: (JBRULES-782) Bug if you modify a fact without notifying the engine and then call workingmemory getFactHandle

Mark Proctor (JIRA) jira-events at lists.jboss.org
Mon Apr 9 22:34:58 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-782?page=comments#action_12358739 ] 
            
Mark Proctor commented on JBRULES-782:
--------------------------------------

only way to fix this is to maintain an extra identity map, which uses more memory, so I don't really want to fix this. For now just retrieve the FactHandle before modifying the pojo, or do it after you have notified the engine.

> Bug if you modify a fact without notifying the engine and then call workingmemory getFactHandle
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-782
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-782
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Reteoo
>    Affects Versions: 3.1-m1
>            Reporter: Mark Proctor
>         Assigned To: Mark Proctor
>
> If a pojo is modified and working memory .getFactHandle() is called which causes the hashcode to change, then we won't be able to retrieve the fact handle.

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

        



More information about the jboss-jira mailing list