清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
ming2026应助NattyPoe采纳,获得10
7秒前
慧子完成签到 ,获得积分10
23秒前
foxm完成签到,获得积分10
26秒前
玛卡巴卡完成签到 ,获得积分10
38秒前
景严完成签到,获得积分10
42秒前
随风沙ZYX完成签到 ,获得积分10
48秒前
xiaowangwang完成签到 ,获得积分10
50秒前
灿烂而孤独的八戒完成签到 ,获得积分0
1分钟前
cdercder应助科研通管家采纳,获得10
1分钟前
cdercder应助科研通管家采纳,获得10
1分钟前
hailang完成签到 ,获得积分10
1分钟前
默默然完成签到 ,获得积分10
2分钟前
2分钟前
PHD满发布了新的文献求助30
2分钟前
俏皮夏瑶完成签到,获得积分10
2分钟前
轻舞完成签到,获得积分10
2分钟前
玛卡巴卡爱吃饭完成签到 ,获得积分10
2分钟前
LMY1470完成签到,获得积分10
2分钟前
调皮的烤鸡完成签到,获得积分10
2分钟前
可爱的函函应助娜娜采纳,获得10
2分钟前
HanaTerbush完成签到,获得积分10
2分钟前
GinaLundhild06完成签到,获得积分10
3分钟前
踏实麦片完成签到,获得积分10
3分钟前
解惑大师完成签到 ,获得积分10
3分钟前
3分钟前
yunsui完成签到,获得积分10
3分钟前
娜娜发布了新的文献求助10
3分钟前
小小油完成签到,获得积分10
3分钟前
hunajx完成签到,获得积分10
3分钟前
欣喜的涵柏完成签到 ,获得积分10
3分钟前
orixero应助科研通管家采纳,获得10
3分钟前
cdercder应助科研通管家采纳,获得10
3分钟前
as完成签到 ,获得积分10
4分钟前
ranj完成签到,获得积分10
4分钟前
小涛完成签到 ,获得积分10
4分钟前
拼搏的寒凝完成签到 ,获得积分10
4分钟前
彭于晏应助jimmy采纳,获得10
4分钟前
风听完成签到 ,获得积分10
4分钟前
chuzihang完成签到 ,获得积分10
4分钟前
小小牛马应助缓慢的巧凡采纳,获得10
4分钟前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
An Introduction to Foreign Language Learning and Teaching 750
China Pluperfect I: Epistemology of Past and Outside in Chinese Art 520
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
Les chinois de jakarta: temples et vie collective 500
Governing Growth: Us Industrial Policy from Hamilton to Trump 500
The fast track to determining transfer functions of linear circuits: The student guide 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7627005
求助须知:如何正确求助?哪些是违规求助? 9201559
关于积分的说明 19728076
捐赠科研通 7197229
什么是DOI,文献DOI怎么找? 3273838
关于科研通互助平台的介绍 2436094
邀请新用户注册赠送积分活动 2269883