Project

General

Profile

Actions

Bug #7019

closed

cloning problems in NamedObj and AtomicActor

Added by Daniel Crawl almost 8 years ago. Updated almost 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 #1

Updated by Christopher Brooks almost 8 years ago

The patch looks good, but I'm going on vacation tomorrow and don't want to break the tree. I return next Tuesday and can take a look then.

Actions #2

Updated by Daniel Crawl almost 8 years ago

Sounds good. Thanks, Christopher.

Actions #3

Updated by Christopher Brooks almost 8 years ago

  • Assignee changed from Christopher Brooks to Daniel Crawl
  • % Done changed from 0 to 90

I've patched the ptII tree. I successfully ran the tests in kernel and actor/test. I'm reassigning this to Dan so that he may close it.

Actions #4

Updated by Daniel Crawl almost 8 years ago

  • Status changed from New to Resolved

Thanks, Christopher.

Actions

Also available in: Atom PDF