Detecting Missing Method Calls as Violations of the Majority Rule - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Article Dans Une Revue ACM Transactions on Software Engineering and Methodology Année : 2013

Detecting Missing Method Calls as Violations of the Majority Rule

Résumé

When using object-oriented frameworks it is easy to overlook certain important method calls that are required at particular places in code. In this paper, we provide a comprehensive set of empirical facts on this problem, starting from traces of missing method calls in a bug repository. We propose a new system that searches for missing method calls in software based on the other method calls that are observable. Our key insight is that the voting theory concept of majority rule holds for method calls: a call is likely to be missing if there is a majority of similar pieces of code where this call is present. The evaluation shows that the system predictions go further missing method calls and often reveal different kinds of code smells (e.g. violations of API best practices).
Fichier principal
Vignette du fichier
detecting-missing-method-calls.pdf (411.87 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-00702196 , version 1 (03-06-2013)

Identifiants

Citer

Martin Monperrus, Mira Mezini. Detecting Missing Method Calls as Violations of the Majority Rule. ACM Transactions on Software Engineering and Methodology, 2013, 22 (1), pp.1-25. ⟨10.1145/2430536.2430541⟩. ⟨hal-00702196⟩
159 Consultations
1005 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More