[jboss-jira] [JBoss JIRA] (DROOLS-510) Traiting a non-natively traitable bean breaks the assert behavior

Davide Sottara (JIRA) issues at jboss.org
Sun Jun 1 07:55:15 EDT 2014


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

Davide Sottara updated DROOLS-510:
----------------------------------

    Git Pull Request: https://github.com/droolsjbpm/drools/pull/340


> Traiting a non-natively traitable bean breaks the assert behavior
> -----------------------------------------------------------------
>
>                 Key: DROOLS-510
>                 URL: https://issues.jboss.org/browse/DROOLS-510
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.6.0.Final, 6.1.0.Beta4
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>
> Only beans implementing the TraitableBean interface can be used with "don" and "shed". If a non-traitable object is processed, the engine creates a proxy to add the required behavior. In versions up to 6.1.B4, this proxy appears EQUAL but not the SAME as the original fact. This will break the lookup of the handle if the user keeps a reference to the original object and tries to use it (e.g. to re-insert or delete the object)



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list