Detecting Missing Method Calls as Violations of the Majority Rule

by Martin Monperrus and Mira Mezini
Abstract: When using object-oriented frameworks it is easy to overlook certain important method calls that are required at particular places in code. In this article, 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).
 View PDF
Open-access (on archives-ouvertes.fr)
Publisher version (via DOI)
Citations: [citations]
Other publications of Martin Monperrus

Cite it:

Detecting Missing Method Calls as Violations of the Majority Rule ( and ), In ACM Transactions on Software Engineering and Methodology, Association for Computing Machinery, volume 22, .
Martin Monperrus and Mira Mezini, "Detecting Missing Method Calls as Violations of the Majority Rule", In ACM Transactions on Software Engineering and Methodology, Association for Computing Machinery, vol. 22, no. 1, pp. 1-25, 2013.

Bibtex Entry:

@article{Monperrus2011b,
 title = {{Detecting Missing Method Calls as Violations of the Majority Rule}},
 author = {Monperrus, Martin and Mezini, Mira},
 url = {https://hal.archives-ouvertes.fr/hal-00702196/file/detecting-missing-method-calls.pdf},
 journal = {{ACM Transactions on Software Engineering and Methodology}},
 publisher = {{Association for Computing Machinery}},
 volume = {22},
 number = {1},
 pages = {1-25},
 year = {2013},
 doi = {10.1145/2430536.2430541},
}
Powered by bibtexbrowser
Tagged as: