Bug #5894
closedClone problems in NamedObjId
Description
Checking the configuration results in messages about clone problems in NamedObjId:
The valueListeners java.util.Vector field
in the clone of "org.kepler.moml.NamedObjId"
does not point to an object distinct from the master.
This may cause problems with actor oriented classes.
The clone(Workspace) method should have a line like:
newObject.valueListeners = (Vector)newObject
/* Get the object method or null? / valueListeners;
The _id org.kepler.objectmanager.lsid.KeplerLSID field
in the clone of "org.kepler.moml.NamedObjId"
does not point to an object distinct from the master.
This may cause problems with actor oriented classes.
The clone(Workspace) method should have a line like:
newObject._id = (KeplerLSID)newObject
/ Get the object method or null? */ _id;
To replicate:
1) Start Kepler
2) Click on the Documentation link
3) Click on "Background information about Ptolemy"
4) Click on the Copyright link
5) Click on the Copyright link at the bottom (Other copyrights ...)
6) Click on "other" information about this configuration at the bottom
7) Click on "about:configuration"
The text above will appear.
The issue with cloning could be causing problems with actor oriented classes.
This class should have a clone(Workspace) method added.
Updated by Christopher Brooks almost 12 years ago
I'm targeting this to 2.5.x because it has been occurring for a long time.
It looks like valueListener and KeplerLSID were added in 2009.
Updated by Daniel Crawl over 9 years ago
- Assignee changed from Daniel Crawl to Christopher Brooks
This should be fixed now.
Updated by Christopher Brooks over 9 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Fixed!