• Cite Icon3
  • https://doi.org/10.1145/2972206.2972216Copy DOI Icon

Dependency Safety for Java

  • Aug 29, 2016
  • Dragan Bošnački +8 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Exception mechanisms help to ensure that a program satisfies the important robustness criterion of dependency safety: if an operation fails, no code that depends on the operation's successful completion is executed anymore nor will wait for the completion. However, the exception handling mechanisms available in languages like Java do not provide a structured way to achieve dependency safety. The language extension failbox provides dependency safety for Java in a compositional manner. So far, there only exists an implementation of failbox in Scala. It requires the assumption of absence of asynchronous exceptions inside the failbox code. In this paper, we are the first to provide an implementation without the above mentioned assumption, this time in Java. First, we present and discuss a direct reimplementation of failbox in Java that is still restricted. Then, we show that using uncaught exception handlers the earlier assumption can be essentially weakened to only concern code before setting the thread handler. Finally, we provide an implementation using the Java native interface that completely removes the assumption.

Similar Papers
  • Research Article

Dependency safety for Java – Implementing and testing failboxes

  • Sep 27, 2019
  • Science of Computer Programming
  • Dan Zhang +6
  • Research Article
  • Citations35

Do android developers neglect error handling? a maintenance-Centric study on the relationship between android abstractions and uncaught exceptions

  • Oct 28, 2017
  • Journal of Systems and Software
  • Juliana Oliveira +4
  • Conference Article
  • Citations1

Taming Exceptions in Android Applications

  • Oct 01, 2018
  • Juliana Oliveira
  • Conference Article
  • Citations19

Contrasting exception handling code across languages: An experience report involving 50 open source projects

  • Nov 01, 2015
  • Benjamin Jakobus +3
  • Conference Article
  • Citations47

Trading robustness for maintainability: an empirical study of evolving c# programs

  • May 31, 2014
  • Nélio Cacho +8
  • Conference Article

Exceptions all Over the Shop: Modular, Customizable, Language-Independent Exception Handling Layer

  • Oct 23, 2023
  • Walter Cazzola +1
  • Research Article
  • Citations3

A New Mechanism for Exception Handling in Concurrent Control Systems

  • Jan 01, 1996
  • European Journal of Control
  • D.A Van Beek +1
  • Research Article
  • Citations17

Unveiling and taming liabilities of aspects in the presence of exceptions: A static analysis based approach

  • Jun 08, 2010
  • Information Sciences
  • Roberta Coelho +4
  • Conference Article
  • Citations12

Exception Flows Made Explicit: An Exploratory Study

  • Oct 01, 2009
  • Nélio Cacho +3
  • Conference Article
  • Citations13

The development and evaluation of exception handling mechanisms for order fulfillment process based on BPEL4WS

  • Jan 01, 2005
  • Fu-Ren Lin +1
  • Preprint Article

Whole program analysis of Java programs for virtual calls and exception handling

  • Jan 10, 2023
  • Simrandeep Nagra
  • Preprint Article

Whole program analysis of Java programs for virtual calls and exception handling

  • Jan 10, 2023
  • Simrandeep Nagra
  • Research Article
  • Citations2

Reasoning About Multi-Lingual Exception Handling Using RIPLS

  • Apr 01, 2008
  • Electronic Notes in Theoretical Computer Science
  • John Ridgway +1
  • Supplementary Content

Title index to volumes 44, 45, and 46

  • Dec 01, 1988
  • Information Sciences
  • Conference Article
  • Citations1

Exploring Exception Handling Mechanism In Android Development

  • Oct 21, 2021
  • 2021 5th International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT)
  • Lama Sublaban +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.