Enhancing Software Robustness by Detecting and Removing Exception Handling Smells: An Empirical Study

Chin-Yun Hsieh,
You-Lun Chen,
Zhen-Jie Liao,

Abstract


We propose a systematic way to uncover and fix bugs through detecting smells associated with exception handling. First, code of software under improvement is scanned for exception handling smells by a static analysis tool. The smells are reviewed for confirming if they are bugs by writing failing tests. Finally, code that contains the smells is refactored until the failing test passes and the smells are removed. We have also conducted an empirical study to demonstrate the efficacy of the proposed approach. In the empirical study, an open source static analysis tool is applied to detect exception handling smells in an open source web application. The result shows that out of the 357 smells reported by the tool, 124 are confirmed to be bugs that could affect the robustness of the web application.


Citation Format:
Chin-Yun Hsieh, You-Lun Chen, Zhen-Jie Liao, "Enhancing Software Robustness by Detecting and Removing Exception Handling Smells: An Empirical Study," Journal of Internet Technology, vol. 19, no. 5 , pp. 1603-1611, Sep. 2018.

Full Text:

PDF

Refbacks

  • There are currently no refbacks.





Published by Executive Committee, Taiwan Academic Network, Ministry of Education, Taipei, Taiwan, R.O.C
JIT Editorial Office, Office of Library and Information Services, National Dong Hwa University
No. 1, Sec. 2, Da Hsueh Rd., Shoufeng, Hualien 974301, Taiwan, R.O.C.
Tel: +886-3-931-7314  E-mail: jit.editorial@gmail.com