Bug 478218 - MIGRATED_FROM_JIRA: Incorrect implementation of clone() methods.
Summary: MIGRATED_FROM_JIRA: Incorrect implementation of clone() methods.
Keywords:
Status: CLOSED EOL
Alias: None
Product: penrose
Classification: Retired
Component: Unknown
Version: 2.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Endi Sukma Dewata
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 471500
TreeView+ depends on / blocked
 
Reported: 2008-12-27 08:09 UTC by Chandrasekar Kannan
Modified: 2020-03-27 18:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 18:37:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Chandrasekar Kannan 2008-12-27 08:09:36 UTC
The current clone() methods only creates a shallow copy. They should create deep copy of the object.

=========================================================
Issue dump from jira
$VAR1 = {
          'priority' => '3',
          'customFieldValues' => [],
          'project' => 'PENROSE',
          'status' => '5',
          'components' => [
                            {}
                          ],
          'reporter' => 'endisd',
          'key' => 'PENROSE-247',
          'assignee' => 'endisd',
          'summary' => 'Incorrect implementation of clone() methods.',
          'id' => '10769',
          'updated' => '2007-07-17 14:04:59.0',
          'votes' => '0',
          'fixVersions' => [
                           {
                             'releaseDate' => '2007-07-17 00:00:00.0',
                             'sequence' => '26',
                             'name' => 'Penrose-1.2.4',
                             'released' => 'true',
                             'id' => '10123',
                             'archived' => 'false'
                           }
                         ],
          'affectsVersions' => [
                               {
                                 'releaseDate' => '2007-07-02 00:00:00.0',
                                 'sequence' => '25',
                                 'name' => ' Penrose-1.2.3',
                                 'released' => 'true',
                                 'id' => '10122',
                                 'archived' => 'false'
                               }
                             ],
          'description' => 'The current clone() methods only creates a shallow copy. They should create deep copy of the object.',
          'created' => '2007-07-17 14:04:49.0',
          'resolution' => '1',
          'type' => '1'
        };


=========================================================

Comment 1 Chandrasekar Kannan 2008-12-27 08:09:38 UTC
Marking bug as MODIFIED as it was already resolved in Jira - PENROSE-247


Note You need to log in before you can comment on or make changes to this bug.