[kepler-dev] IOPortEvent bug

Christopher Brooks cxh at eecs.berkeley.edu
Fri Feb 22 11:13:35 PST 2008


Done!


cxh at carson 192% cvs diff -D yesterday IOPort.java
Index: IOPort.java
===================================================================
RCS file: /home/cvs/ptII/ptolemy/actor/IOPort.java,v
retrieving revision 1.260
retrieving revision 1.261
diff -r1.260 -r1.261
129c129
<  @version $Id: IOPort.java,v 1.260 2008/02/19 18:25:47 cxh Exp $
---
>  @version $Id: IOPort.java,v 1.261 2008/02/22 19:11:58 cxh Exp $
420a421,424
> 
>         newObject._hasPortEventListeners = false;
>         newObject._portEventListeners = null;
> 
cxh at carson 193% 

On my todo list is to write some tests for the IOPortListener
code.

_Christopher

--------

    
    Hi Colin,
    
    The cloned IOPort's listener list should be set to null. Since
    Kepler CVS no longer has a separate copy of IOPort.java, could
    someone make this change in ptII CVS?
    
    Thanks,
    
      --dan
    
    Colin Enticott wrote:
    > Hi all,
    >
    > I was having trouble with my code and I have narrowing it down to
    > IOPortEvents feature.  There appears to be a bug in the IOPort class with
    > IOPortEvent feature and cloning.  It looks like if there has been an
    > IOPortEventListener added, when it is cloned, all the clones will have a
    > reference to the same listener list.  I guess the list itself should be
    > cloned or the clone's list reference should be set back to null.
    >
    > It is possible if someone could have a look at this?
    >
    > Thanks,
    > Colin
    >
    > _______________________________________________
    > Kepler-dev mailing list
    > Kepler-dev at ecoinformatics.org
    > http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
    >   
    
    _______________________________________________
    Kepler-dev mailing list
    Kepler-dev at ecoinformatics.org
    http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
--------


More information about the Kepler-dev mailing list