Tom,

Thank you for finding and providing the fix. I will commit it and it will be available on next release.

  Regards,
     Edson


Tom Gonzalez wrote:

We are asserting facts that support property change listeners and found that Drools added itself as a listener just fine but failed to remove itself when the facts were retracted.

We have fixed the stated problem by modifying org.drools.common.AbstractWorkingMemory as follows:

Starting at line number 582:
*protected** void* removePropertyChangeListener(*final* FactHandle handle)* throws* NoSuchFactObjectException {
        Object object =* null*;
       * try* {
            object = getObject( handle );

* final* Method method = object.getClass().getMethod( "removePropertyChangeListener", AbstractWorkingMemory./ADD_REMOVE_PROPERTY_CHANGE_LISTENER_ARG_TYPES/ );

            method.invoke( object,
                         * this*.addRemovePropertyChangeListenerArgs );



Regards,

Tom G

                      Tom Gonzalez
                      NortelNetworks
                      Cost Improvement Tools
                      Software Design
                      [EMAIL PROTECTED]
                      919-905-8656



--
 ---
 Edson Tirelli
 Software Engineer - JBoss Rules Core Developer
 Office: +55 11 3124-6000
 Mobile: +55 11 9218-4151
 JBoss, a division of Red Hat @ www.jboss.com

 IT executives: Red Hat still #1 for value
http://www.redhat.com/promo/vendor/

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to