Presentation 2009-11-27
An analysis of relationship between software bug and variable name
Hiroyuki YAMAMOTO, Yasutaka KAMEI, Shinsuke MATSUMOTO, Akito MONDEN, Ken-ichi MATSUMOTO,
PDF Download Page PDF download Page Link
Abstract(in Japanese) (See Japanese page)
Abstract(in English) Variable names used in each software module could be used as indicators of software bugs in the module because (1) names are given by a programmer who is responsible of the module and some programmers tend to produce more bugs than others, and (2) names are usually related to some functions in a program and some functions are more difficult to implement (without injecting bugs) than others. So far, the relationship between variable names and software bugs have not investigated. In this paper, by analyzing Eclipse 3.0 and 3.1 projects, we experimentally validate two hypotheses; (H1) there is a relationship between variable names and software bugs, (H2) this relationship is preserved through different versions of a software product. In the experiment, for each variable name, we calculated the average bug density of modules in which the name appeared. The result supported both H1 and H2, and the coefficient of correlation of bug density (bound to each name) between Eclipse 3.0 and 3.1 was 0.621. This suggests that focusing on variable names related to high bug density in the previous version can help in identifying high risk modules of an ongoing project.
Keyword(in Japanese) (See Japanese page)
Keyword(in English) variable name / relationship between software bug and variable name / bug density
Paper # KBSE2009-42
Date of Issue

Conference Information
Committee KBSE
Conference Date 2009/11/19(1days)
Place (in Japanese) (See Japanese page)
Place (in English)
Topics (in Japanese) (See Japanese page)
Topics (in English)
Chair
Vice Chair
Secretary
Assistant

Paper Information
Registration To Knowledge-Based Software Engineering (KBSE)
Language JPN
Title (in Japanese) (See Japanese page)
Sub Title (in Japanese) (See Japanese page)
Title (in English) An analysis of relationship between software bug and variable name
Sub Title (in English)
Keyword(1) variable name
Keyword(2) relationship between software bug and variable name
Keyword(3) bug density
1st Author's Name Hiroyuki YAMAMOTO
1st Author's Affiliation Graduate School of Information Science, Nara Institute of Science and Technology()
2nd Author's Name Yasutaka KAMEI
2nd Author's Affiliation Graduate School of Information Science, Nara Institute of Science and Technology
3rd Author's Name Shinsuke MATSUMOTO
3rd Author's Affiliation Graduate School of Information Science, Nara Institute of Science and Technology
4th Author's Name Akito MONDEN
4th Author's Affiliation Graduate School of Information Science, Nara Institute of Science and Technology
5th Author's Name Ken-ichi MATSUMOTO
5th Author's Affiliation Graduate School of Information Science, Nara Institute of Science and Technology
Date 2009-11-27
Paper # KBSE2009-42
Volume (vol) vol.109
Number (no) 307
Page pp.pp.-
#Pages 5
Date of Issue