Project

General

Profile

Actions

Bug #7019

closed

cloning problems in NamedObj and AtomicActor

Added by Daniel Crawl over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Target version:
Start date:
05/03/2016
Due date:
% Done:

90%

Estimated time:
Bugzilla-Id:

Description

I'm attaching a patch to fix cloning issues in NamedObj.java:

// Since _debugListeners is null, _debugging should be
// false to avoid error message in _debug()

and AtomicActor.java:

// When super.clone() is called below, attributes that are
// contained in this actor are also cloned, which includes
// calling methods on these attributes such as setContainer().
// These methods may add themselves to the firing listeners
// or initializables lists in the newObject clone, so we do
// not want to clear these lists in newObject after super.clone().
// Instead, save this instance's lists here and restore them after
// call super.clone().


Files

cloning-patch.txt (2.28 KB) cloning-patch.txt Daniel Crawl, 05/03/2016 11:54 AM
Actions

Also available in: Atom PDF