Heuristic Strategies for Recommendation of Exception Handling Code

E. Barbosa, Alessandro F. Garcia, M. Mezini
{"title":"Heuristic Strategies for Recommendation of Exception Handling Code","authors":"E. Barbosa, Alessandro F. Garcia, M. Mezini","doi":"10.1109/SBES.2012.22","DOIUrl":null,"url":null,"abstract":"Software developers have difficulties in implementing exception handling code in their systems. In particular, they fail in implementing appropriate handling actions. Not surprisingly, recurring failures and performance issues are often related to the poor exception handling actions implemented in real software systems. In this paper we propose, implement and evaluate a set of three heuristic strategies used to recommend exception handling code in programming tasks. Given a method in which the developer wants to handle an exception, the heuristics recommend a list of code fragments implementing exception handling. The heuristics' goal is to accurately find code fragments implementing exception handling and recommend these fragments according to the context of developers' implementation task. Hence, the proposed heuristics may assist developers in the process of discovering exception handling actions relevant to their context by providing concrete examples. We believe that a recommender system based on the proposed heuristics may be used in the future as a tool for aiding exception handling implementation.","PeriodicalId":286943,"journal":{"name":"2012 26th Brazilian Symposium on Software Engineering","volume":"51 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-09-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"23","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 26th Brazilian Symposium on Software Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SBES.2012.22","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 23

Abstract

Software developers have difficulties in implementing exception handling code in their systems. In particular, they fail in implementing appropriate handling actions. Not surprisingly, recurring failures and performance issues are often related to the poor exception handling actions implemented in real software systems. In this paper we propose, implement and evaluate a set of three heuristic strategies used to recommend exception handling code in programming tasks. Given a method in which the developer wants to handle an exception, the heuristics recommend a list of code fragments implementing exception handling. The heuristics' goal is to accurately find code fragments implementing exception handling and recommend these fragments according to the context of developers' implementation task. Hence, the proposed heuristics may assist developers in the process of discovering exception handling actions relevant to their context by providing concrete examples. We believe that a recommender system based on the proposed heuristics may be used in the future as a tool for aiding exception handling implementation.
异常处理代码推荐的启发式策略
软件开发人员很难在他们的系统中实现异常处理代码。特别是,它们无法实现适当的处理操作。不足为奇的是,反复出现的故障和性能问题通常与实际软件系统中实现的糟糕的异常处理操作有关。在本文中,我们提出、实现并评估了一组三种启发式策略,用于在编程任务中推荐异常处理代码。对于开发人员想要处理异常的方法,启发式方法会推荐实现异常处理的代码片段列表。启发式的目标是准确地找到实现异常处理的代码片段,并根据开发人员实现任务的上下文推荐这些片段。因此,建议的启发式方法可以通过提供具体的示例来帮助开发人员发现与其上下文相关的异常处理操作。我们相信,基于所提出的启发式的推荐系统可能在未来用作辅助异常处理实现的工具。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信