Bug 196521 - [commands] MIInfo command result objects are not immutable.
Summary: [commands] MIInfo command result objects are not immutable.
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 0 DD 1.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 159688
  Show dependency tree
 
Reported: 2007-07-13 18:59 EDT by Pawel Piech CLA
Modified: 2020-09-04 15:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2007-07-13 18:59:38 EDT
DsfMIOutput objects are used to create the DsfMIInfo objects which are the output of commands sent to the MI back end.  These objects are then included in the results to IDMService.getDMData() objects and stored in various command and data caches.  
To guarantee the stability of the data in these caches, the DsfMIOutput objects as well as DsfMIInfo objects and everything that derives from them should be immutable.  
These objects were originally copied from the CDI-MI implementation and making them immutable is a further work item in completing this refactoring.
Comment 1 Pawel Piech CLA 2008-01-29 19:51:21 EST
During refactoring of IDMContext objects in November, I also refactored DsfMIOutput so that it is Immutable.  Base DsfMIInfo class is also immutable.  The only thing that is left is to go through all the info classes that derive from DsfMIInfo and clean up their constructors so that their fields are all declared final.