计算机科学 ›› 2014, Vol. 41 ›› Issue (8): 106-108.doi: 10.11896/j.issn.1002-137X.2014.08.023

• 2013年全国理论计算机科学学术年会 • 上一篇    下一篇

Java程序异常信息分析插件的研究与设计

宋道远,贲可荣   

  1. 海军工程大学计算机工程系 武汉430033;海军工程大学计算机工程系 武汉430033
  • 出版日期:2018-11-14 发布日期:2018-11-14
  • 基金资助:
    本文受国家自然科学基金(61272108),软件工程国家重点实验室开放基金(SKLSE2012-09-38)资助

Research and Design of Java Exception Information Analysis Plugin

SONG Dao-yuan and BEN Ke-rong   

  • Online:2018-11-14 Published:2018-11-14

摘要: 异常处理是一种有效提高软件健壮性的方法,处理不当将导致严重的软件失效。提出一种通过分析Java程序异常信息、由开发平台给出异常处理代码提示的方法,以提高开发效率,并提出一种包含异常结构的Java程序异常控制流图构造方法,用于程序分析和优化。基于Eclipse开发环境,设计了一个异常信息分析插件,用于分析Java程序异常信息,给出了代码提示,生成了异常控制流图,以帮助开发人员更快更好地书写异常处理代码。

关键词: 异常处理,插件设计,异常控制流图

Abstract: Exception handling is an efficient method to improve the software robustness,while an inappropriate handling will cause a serious software failure.This paper proposed a method for analyzing the Java exception information and gi-ving a code suggestion to improve the efficiency of the development.We proposed a method for constructing the exception control flow graph for Java with exception construct,which will be used to code analyse and optimization.Based on the Eclipse,this paper designed a Java exception information analysis plug-in,to analyse the Java exception information,gave a code suggestion and produced the exception control flow graph,which will help developers write exception handling code faster and better.

Key words: Exception handling,Plug-in design,Exception control flow graph

[1] Sawadpong P,Allen E B,Williams B J.Exception Handling Defects:An Empirical Study[C]∥14th International Symposium on High-Assurance Systems Engineering.Omaha,USA,October 2012:90-97
[2] Rashkovits R,Lavy l.Students’ Misconceptions of Java[C]∥7th Mediterranean Conference on Information System.Guimaraes,Portugal,September 2012:1-21
[3] 姜淑娟,徐宝文.异常处理——一种提高软件健壮性的方法[J].计算机科学,2003,0(9):169-172
[4] 姜淑娟.异常传播分析技术及其应用研究[D].南京:东南大学,2006
[5] 姜淑娟,徐宝文,姜元鹏.一个异常传播分析工具的设计与实现[J].计算机科学,2008,5(7):277-279
[6] Robillard M P.Analyzing exception flow in Java programs [D].The University of British Columbia,1999
[7] Robillard M P,Murphy G C.Designing Robust Java Programs with Exception[C]∥8th ACM SIGSOFT international sympo-sium on Foundation of software engineering.2000:2-10
[8] Chang B-M,Jo Jang-wu.Visualization of Exception Propagation for Java using Static Analysis[C]∥2nd IEEE International Workshop on Source Code Analysis and Manipulation.Canada,2002:173-182
[9] 陈红跃,张宏军,陈刚.Java异常处理策略研究[J].计算机技术与发展,2012,2(7):9-12
[10] Zhang Yan-mei,Jiang Shu-juan,Zhao Xue-feng.Analysis of Object-oriented Programs with Exception-Handling Constructs[J].International Journal of Advancements in Computing Technology,2012,4(1):505-515

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!