首页 | 本学科首页   官方微博 | 高级检索  
     


Exception handling refactorings: Directed by goals and driven by bug fixing
Authors:Chien-Tsun Chen [Author Vitae]  Yu Chin Cheng [Author Vitae]  Chin-Yun Hsieh [Author Vitae]  I-Lang Wu [Author Vitae]
Affiliation:Department of Computer Science and Information Engineering, National Taipei University of Technology, 1, Sec 3, Chung-Hsiao E. Road, Taipei 106, Taiwan
Abstract:Exception handling design can improve robustness, which is an important quality attribute of software. However, exception handling design remains one of the less understood and considered parts in software development. In addition, like most software design problems, even if developers are requested to design with exception handling beforehand, it is very difficult to get the right design at the first shot. Therefore, improving exception handling design after software is constructed is necessary. This paper applies refactoring to incrementally improve exception handling design. We first establish four exception handling goals to stage the refactoring actions. Next, we introduce exception handling smells that hinder the achievement of the goals and propose exception handling refactorings to eliminate the smells. We suggest exception handling refactoring is best driven by bug fixing because it provides measurable quality improvement results that explicitly reveal the benefits of refactoring. We conduct a case study with the proposed refactorings on a real world banking application and provide a cost-effectiveness analysis. The result shows that our approach can effectively improve exception handling design, enhance software robustness, and save maintenance cost. Our approach simplifies the process of applying big exception handling refactoring by dividing the process into clearly defined intermediate milestones that are easily exercised and verified. The approach can be applied in general software development and in legacy system maintenance.
Keywords:Refactoring  Java exception handling  Object-oriented design
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号