Engineering of Complex Computer Systems, IEEE International Conference on (2002)
Dec. 2, 2002 to Dec. 4, 2002
Roger T. Alexander , Colorado State University
Jeff Offutt , George Mason University
James M. Bieman , Colorado State University
Although program faults are widely studied, there are many aspects of faults that we still do not understand, particularly about OO software. In addition to the simple fact that one important goal during testing is to cause failures and thereby detect faults, a full understanding of the characteristics of faults is crucial to several research areas. The power that inheritance and polymorphism brings to the expressiveness of programming languages also brings a number of new anomalies and fault types. In prior work we presented a fault model for the appearance and realization of OO faults that are specific to the use of inheritance and polymorphism. Many of these faults cannot appear unless certain syntactic patterns are used. The patterns are based on language constructs, such as overriding methods that directly define inherited state variables and non-inherited methods that call inherited methods. If one of these syntactic patterns is used, then we say the software contains an anomaly and possibly a fault. This paper describes the syntactic patterns for each OO fault type. These syntactic patterns can potentially be found with an automatic tool. Thus, faults can be uncovered and removed early in development.
Roger T. Alexander, Jeff Offutt, James M. Bieman, "Syntactic Fault Patterns in OO Programs", Engineering of Complex Computer Systems, IEEE International Conference on, vol. 00, no. , pp. 193, 2002, doi:10.1109/ICECCS.2002.1181512