Enforcing Exception Handling Policies with a Domain-Specific Language

被引:17
|
作者
Barbosa, Eiji Adachi [1 ]
Garcia, Alessandro [1 ]
Robillard, Martin P. [2 ]
Jakobus, Benjamin [1 ]
机构
[1] Pontif Catholic Univ Rio de Janeiro, Dept Informat, OPUS Res Grp, Rua Marques de Sao Vicente,255 Gavea, BR-22453900 Rio De Janeiro, Brazil
[2] McGill Univ, Sch Comp Sci, 3480 Univ St,McConnell Engn Bldg,Off 114N, Montreal, PQ H3A 2A7, Canada
关键词
Exception handling; exception handling policy; policy specification; domain-specific language; !text type='JAVA']JAVA[!/text;
D O I
10.1109/TSE.2015.2506164
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Current software projects deal with exceptions in implementation and maintenance phases without a clear definition of exception handling policies. We call an exception handling policy the set of design decisions that govern the use of exceptions in a software project. Without an explicit exception handling policy, developers can remain unaware of the originally intended use of exceptions. In this paper, we present Exception Handling Policies Language (EPL), a domain-specific language to specify and verify exception handling policies. The evaluation of EPL was based on a user-centric observational study and case studies. The user-centric study was performed to observe how potential users of the language actually use it. With this study, we could better understand the trade-offs related to different language design decisions based on concrete and well-documented observations and experiences reported by participants. We identified some language characteristics that hindered its use and that motivated new language constructs. In addition, we performed case studies with one open-source project and two industry-strength systems to investigate how specifying and verifying exception handling policies may assist in detecting exception handling problems. The results show that violations of exception handling policies help to indicate potential faults in the exception handling code.
引用
收藏
页码:559 / 584
页数:26
相关论文
共 50 条
  • [1] A domain-specific language for the specification of UCON policies
    Reina Quintero, Antonia M.
    Martinez Perez, Salvador
    Jesus Varela-Vaca, Angel
    Gomez Lopez, Maria Teresa
    Cabot, Jordi
    [J]. JOURNAL OF INFORMATION SECURITY AND APPLICATIONS, 2022, 64
  • [2] HAPI: A domain-specific language for the declaration of access policies
    Ramos, Vinicius Juliao
    Holmquist, Alexander
    Pereira, Fernando Magno Quintao
    [J]. JOURNAL OF COMPUTER LANGUAGES, 2022, 72
  • [3] Hapi: A Domain-Specific Language for the Declaration of Access Policies
    Juliao, Vinicius
    Holmquist, Alexander
    Correa Junior, Flavio Lucio
    Oliveira Santos, Celso Junio S.
    Quintao Pereira, Fernando M.
    [J]. 25TH BRAZILIAN SYMPOSIUM ON PROGRAMMING LANGUAGES, SBLP 2021, 2021, : 9 - 16
  • [4] Certifying domain-specific policies
    Lowry, M
    Pressburger, T
    Rosu, G
    [J]. 16TH ANNUAL INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2001), PROCEEDINGS, 2001, : 81 - 90
  • [5] A Domain-Specific Language for Microservices
    Donham, Jacob
    [J]. PROCEEDINGS OF THE 9TH ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON SCALA (SCALA '18), 2018, : 2 - 12
  • [6] Model Checking in the Presence of Schedulers Using a Domain-Specific Language for Scheduling Policies
    Nhat-Hoa Tran
    Chiba, Yuki
    Aoki, Toshiaki
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2019, E102D (07): : 1280 - 1295
  • [7] A Domain-Specific Language for Aviation Domain Interoperability
    Comitz, Paul
    [J]. 2013 INTEGRATED COMMUNICATIONS, NAVIGATION AND SURVEILLANCE CONFERENCE (ICNS), 2013,
  • [8] JAMOOS: A domain-specific language for language processing
    Gil, Joseph Yossi
    Tsoglin, Yuri
    [J]. 2001, University of Zagreb, Faculty of Political Sciences (09)
  • [9] A DOMAIN-SPECIFIC LANGUAGE FOR ROUTING PROBLEMS
    Hoffmann, Benjamin
    Guckert, Michael
    Farrenkopf, Thomas
    Chalmers, Kevin
    Urquhart, Neil
    [J]. 32ND EUROPEAN CONFERENCE ON MODELLING AND SIMULATION (ECMS 2018), 2018, : 262 - 268
  • [10] Domain-Specific Language Abstractions for Compression
    Ray, Jessica
    Brahmakshatriya, Ajay
    Wang, Richard
    Kamil, Shoaib
    Reuther, Albert
    Sze, Vivienne
    Amarasinghe, Saman
    [J]. 2021 DATA COMPRESSION CONFERENCE (DCC 2021), 2021, : 364 - 364