已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

New exception interfaces for Java-like languages

作者
Thiago B. L. Silva,Fernando Castor
标识
DOI:10.1145/2480362.2480675
摘要

The Java programming language allows developers to specify the exception interface of a method using the throws clause. This mechanism supports static checking that is coherent with a statically-typed language. However, it is known to have limitations. In particular, throws clauses hinder understandability and maintainability due to their scattered nature and lack of information about the source of an exception, the place where it is handled, and everything in between. In this paper, we propose a simple form of exception interface specification, called Exception Propagation Channel (EPC), that provides a global view of exception flow and complements Java's exception interfaces. Our approach stems from the observation that throws clauses scale well for methods that throw exceptions to large numbers of direct callers (horizontally), but not for long chains of method calls (vertically). We present an extension to the Java language, called EPiC-Java that incorporates the proposed approach as well as a prototype compiler and a reengineering tool for that extension. Application of the proposed approach to three open-source systems resulted in a considerable reduction in the number of throws clauses and a comparatively smaller number of EPCs, thus suggesting that maintainability is improved.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
杨晓兰完成签到 ,获得积分10
1秒前
1秒前
小宇完成签到,获得积分10
2秒前
丘比特的应助被积极的代玉采纳,获得10
2秒前
Shiyuzz完成签到 ,获得积分10
4秒前
4秒前
奋斗舞仙完成签到 ,获得积分10
5秒前
跳跃靖完成签到,获得积分10
5秒前
刘yu发布了新的文献求助10
5秒前
薇薇一笑关注了科研通微信公众号
6秒前
6秒前
7秒前
oleskarabach完成签到,获得积分20
7秒前
Wilder完成签到,获得积分10
7秒前
咩咩完成签到 ,获得积分10
8秒前
fei完成签到,获得积分10
8秒前
10秒前
10秒前
Owen的应助被上上签采纳,获得10
10秒前
虎帅发布了新的文献求助10
10秒前
酷波er的应助被跳跃靖采纳,获得10
11秒前
小豆糕发布了新的文献求助10
11秒前
小燕子发布了新的文献求助10
12秒前
12秒前
lxy发布了新的文献求助10
14秒前
369ninja发布了新的文献求助30
16秒前
早茶可口完成签到,获得积分10
20秒前
掬一捧月光完成签到 ,获得积分10
23秒前
23秒前
悦耳的城完成签到,获得积分10
26秒前
26秒前
GDL发布了新的文献求助10
27秒前
Neutrino完成签到,获得积分10
28秒前
28秒前
ding的应助被小燕子采纳,获得10
32秒前
wyp完成签到,获得积分10
34秒前
Fzj发布了新的文献求助10
36秒前
科研通AI6.2的应助被halox采纳,获得10
36秒前
苗条的采梦完成签到,获得积分10
38秒前
Tianhuiqin完成签到 ,获得积分10
39秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 1000
Электротехническая система магнитожидкостной герметизации валов регулируемых электродвигателей 800
日本語と中国語及びチベット・ビルマ語の語源関連性に関する分析 800
Holistic Discourse Analysis, Second Edition by Robert E. Longacre 666
Mental Health 600
The Basics of Practical Optimization, Second Edition 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 有机化学 物理 生物化学 化学工程 内科学 复合材料 催化作用 心理学 人工智能 细胞生物学 光电子学 无机化学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 7978463
求助须知:如何正确求助?哪些是违规求助? 9441181
关于积分的说明 21074304
捐赠科研通 7553961
什么是DOI,文献DOI怎么找? 3375166
关于科研通互助平台的介绍 2509674
邀请新用户注册赠送积分活动 2408187