【24h】

Exception Evolution in Long-Lived Java Systems

机译:长期Java系统中的异常演变

获取原文

摘要

Exception handling allows developers to deal with abnormal situations that disrupt the execution flow of a program. There are mainly three types of exceptions: standard exceptions provided by the programming language itself, custom exceptions defined by the project developers, and third-party exceptions defined in external libraries. We conjecture that there are multiple factors that affect the use of these exception types. We perform an empirical study on long-lived Java projects to investigate these factors. In particular, we analyze how developers rely on the different types of exceptions in throw statements and exception handlers. We confirm that the domain, the type, and the development phase of a project affect the exception handling patterns. We observe that applications have significantly more error handling code than libraries and they increasingly rely on custom exceptions. Also, projects that belong to different domains have different preferences of exception types. For instance, content management systems rely more on custom exceptions than standard exceptions whereas the opposite is true in parsing frameworks.
机译:异常处理允许开发人员处理破坏程序的执行流的异常情况。主要有三种类型的例外:由编程语言本身提供的标准例外,项目开发人员定义的自定义异常,以及在外部库中定义的第三方异常。我们猜测有多种因素影响这些异常类型的使用。我们对长期Java项目进行了实证研究,以调查这些因素。特别是,我们分析开发人员如何依赖不同类型的异常抛出语句和异常处理程序。我们确认项目的域,类型和开发阶段会影响异常处理模式。我们观察到,应用程序的错误处理代码比库更大,而且他们越来越依赖于自定义例外。此外,属于不同域的项目具有不同的异常类型的偏好。例如,内容管理系统的自定义异常依赖于标准例外,而解析框架中的相反是如此。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号