Validating object-oriented design metrics on a commercial Java application

Download
  1. (PDF, 632 KB)
DOIResolve DOI: http://doi.org/10.4224/8914217
AuthorSearch for: ; Search for: ; Search for: ; Search for:
TypeTechnical Report
Series titleERB; no. 1080
AbstractMany of the object-oriented metrics that have been developed by the research community are believed to measure some aspect of complexity. As such, they can serve as leading indicators of problematic classes, for example, those classes that are most fault-prone. If faulty classes can be detected early in the development project' s life cycle, mitigating actions can be taken, such as focused inspections. Prediction models using design metrics can be used to identify faulty classes early on. In this paper, we present a cognitive theory of object-oriented metrics and an empirical study which has as objectives to formally test this theory while validating the metrics and to build a post-release fault-proneness prediction model. The cognitive mechanisms which we apply in this study to object-oriented metrics are based on contemporary models of human memory. They are: familiarity, interference, and fan effects. Our empirical study was performed with data from a commercial Java application. We found that Depth of Inheritance Tree (DIT) is a good measure of familiarity and, as predicted, has a quadratic relationship with fault-proneness. Our hypotheses were confirmed for Import Coupling to other classes, Export Coupling and Number of Children metrics. The Ancestor based Import Coupling metrics were not associated with fault-proneness after controlling for the confounding effect of DIT. The prediction model constructed had a good accuracy. Finally, we formulated a cost savings model and applied it to our predictive model. This demonstrated a 42% reduction in post-release costs if the prediction model is used to identify the classes that should be inspected.
Publication date
PublisherNational Research Council Canada
LanguageEnglish
AffiliationNational Research Council Canada; NRC Institute for Information Technology
Peer reviewedNo
NRC number44146
NPARC number8914217
Export citationExport as RIS
Report a correctionReport a correction
Record identifierc83b709c-c496-4783-b680-13b44c12b44d
Record created2009-04-22
Record modified2016-09-29
Bookmark and share
  • Share this page with Facebook (Opens in a new window)
  • Share this page with Twitter (Opens in a new window)
  • Share this page with Google+ (Opens in a new window)
  • Share this page with Delicious (Opens in a new window)