Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2011, Vol. 37 ›› Issue (11): 94-96,102. doi: 10.3969/j.issn.1000-3428.2011.11.032

• Networks and Communications • Previous Articles     Next Articles

Exception Propagation Analysis Method of Object Oriented Program

ZHAO Xue-feng, JIANG Shu-juan, ZHANG Yan-mei   

  1. (School of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China)
  • Received:2010-12-09 Online:2011-06-05 Published:2011-06-05

面向对象程序的异常传播分析方法

赵雪峰,姜淑娟,张艳梅   

  1. (中国矿业大学计算机科学与技术学院,江苏 徐州 221116)
  • 作者简介:赵雪峰(1985-),男,硕士研究生,主研方向:面向对 象程序设计;姜淑娟,教授、博士、博士生导师;张艳梅,博士研究生
  • 基金资助:
    国家自然科学基金资助项目(60970032);教育部科学技术研究基金资助重点项目(108063);江苏省自然科学基金资助项目(BK 2008124);中国矿业大学科学研究基金资助项目(OD080310)

Abstract: Most of the existing exception propagation analysis methods are limited in intra-class, which can not meet the requirement of software development. This paper presents an exception propagation analysis method of object oriented program, which builds an Object Oriented Exception Propagation Analysis Graph(OEPAG) based on the control flow graph of classes. After obtaining the path of exception propagation and the relation of classes, it is effective to analyze the control flow and data flow. Application result shows that result based on OEPAG is more accurate than traditional methods when computing slice for programs which includes exception handling structure.

Key words: object oriented program, exception propagation, data flow, control flow, propagation path

摘要: 现有异常传播分析方法大多局限于单个类内部,不能满足现实软件开发的需求。为此,提出一种面向对象程序的异常传播分析方法,在类控制流图的基础上构建面向对象异常传播分析(OEPAG)图,通过得到异常在类间的传播路径并确定类间关系,从而对控制流和数据流进行有效分析。应用结果表明,将OEPAG图用于含异常处理结构的程序切片时的结果比传统程序切片结果更准确。

关键词: 面向对象程序, 异常传播, 数据流, 控制流, 传播路径

CLC Number: