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

一种异常处理策略的评测方法
引用本文:姜淑娟,徐宝文.一种异常处理策略的评测方法[J].东南大学学报,2007,23(4):524-528.
作者姓名:姜淑娟  徐宝文
作者单位:中国矿业大学计算机科学与技术学院 徐州221116(姜淑娟),东南大学计算机科学与工程学院 南京210096(徐宝文)
基金项目:国家自然科学基金,国家重点基础研究发展计划(973计划),江苏省自然科学基金,中国矿业大学校科研和教改项目
摘    要:针对程序中异常处理代码难以测试和维护、影响软件的健壮性和可靠性的问题,提出了一种评测程序中异常处理策略的方法.通过简化程序的控制流图,得到一种描述大型程序中异常处理结构的方法--异常传播图,并用实例验证了其有效性.根据程序的异常传播图,可以检测出程序中不可达的异常处理代码、找到控制异常传播的最佳位置、修正不合理的异常处理策略等.并给出了异常传播图的构造算法,为该方法实现自动化处理提供基础.

关 键 词:软件健壮性  异常处理  异常传播  评测程序  控制流图
收稿时间:2007-03-16
修稿时间:2007年3月16日

Approach to evaluating exception handling of programs
Jiang Shujuan,Xu Baowen.Approach to evaluating exception handling of programs[J].Journal of Southeast University(English Edition),2007,23(4):524-528.
Authors:Jiang Shujuan  Xu Baowen
Institution:1, School of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China;2,School of Computer Science and Engineering, Southeast University, Nanjing 210096, China
Abstract:To solve the problems that the exception handling code is hard to test and maintain and that it affects the robustness and reliability of software, a method for evaluating the exception handling of programs is presented. The exception propagation graph (EPG) that describes the large programs with exception handling constructs is proposed by simplifying the control flow graph and it is applied to a case to verify its validity. According to the EPG, the exception handling code that never executes is identified; the points that are the most critical to controlling exception propagation are found; and the irrational exception handling code is corrected. The constructing algorithm for the EPG is given; thus, this provides a basis for automatically constructing the EPG and automatically correcting the irrational exception handling code.
Keywords:software robustness  exception handling  exception propagation  evaluating program  control flow graph
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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