Extending object-oriented languages with backward error recovery integrated support

  • Authors:
  • Daniel Fernández Lanvin;Raúl Izquierdo Castanedo;Aquilino Adolfo Juan Fuente;Alberto Manuel Fernández Álvarez

  • Affiliations:
  • University of Oviedo, Dept. Informática, Oviedo 33007, Spain;University of Oviedo, Dept. Informática, Oviedo 33007, Spain;University of Oviedo, Dept. Informática, Oviedo 33007, Spain;University of Oviedo, Dept. Informática, Oviedo 33007, Spain

  • Venue:
  • Computer Languages, Systems and Structures
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

One of the requirements of software robustness is controlling and managing runtime errors that might arise at certain points of application execution. In most object-oriented programming languages, this requirement is commonly implemented by means of exception handling. Although exception handling is a powerful tool to avoid system failure arising, there are still many situations where it is not sufficient to restore the system to a consistent state. Exception handling allows the developer to detect and locate errors, but it gives no information or tools to cover the error recovering task. Therefore, we propose an extension of the semantics of common object-oriented languages to restore the previous consistent state of the system in the presence of runtime errors, avoiding some of the tasks that exception-handling mechanisms delegate to developers. Our proposed solution is centered in the concept of ''reconstructor'', a declarative component oriented to automatically return the system to its last stable state. Based on this concept, we develop a non-intrusive code enrichment tool for Java, and we apply it to a real application in order to check the feasibility of the proposal. We evaluated the performance of the resulting code, obtaining reasonable and viable rates and overload.