Skip to main content
Presentation
On exceptions, events and observer chains
Computer Science Conference Presentations, Posters and Proceedings
  • Mehdi Bagherzadeh, Iowa State University
  • Hridesh Rajan, Iowa State University
  • Ali Darvish, Iowa State University
Document Type
Conference Proceeding
Conference
12th Annual International Conference on Aspect-Oriented Software Development (AOSD '13)
Publication Version
Accepted Manuscript
Link to Published Version
https://doi.org/10.1145/2451436.2451458
Publication Date
3-24-2013
DOI
10.1145/2451436.2451458
Conference Date
March 24-29, 2013
Geolocation
(33.5903547, 130.40171550000002)
Abstract

Modular understanding of behaviors and flows of exceptions may help in their better use and handling. Such reasoning tasks about exceptions face unique challenges in event-based implicit invocation (II) languages that allow subjects to implicitly invoke observers, and run the observers in a chain. In this work, we illustrate these challenge in Ptolemy and propose Ptolemy-X that enables modular reasoning about behaviors and flows of exceptions for event announcement and handling. Ptolemy-X's exception-aware specification expressions and boundary exceptions limit the set of (un)checked exceptions of subjects and observers of an event. Exceptional postconditions specify the behaviors of these exceptions. Greybox specifications specify the flows of these exceptions among the observers in the chain. Ptolemy-X's type system and refinement rules enforce these specifications and thus enable its modular reasoning. We evaluate the utility of Ptolemy-X's exception flow reasoning by applying it to understand a set of aspect-oriented (AO) bug patterns. We also present Ptolemy-X's semantics including its sound static semantics.

Comments

This is a manuscript of a proceeding published as Mehdi Bagherzadeh, Hridesh Rajan and Ali Darvish, ``On Exceptions, Events and Observer Chains," 12th International Conference on Aspect-Oriented Software Development (AOSD '13), Fukuoka, Japan, March 24-29, 2013. DOI: 10.1145/2451436.2451458. Posted with permission.

Rights
© ACM, 2013. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in Proceedings of the 12th Annual International Conference on Aspect-Oriented Software Development (AOSD '13).
Copyright Owner
ACM
Language
en
File Format
application/pdf
Citation Information
Mehdi Bagherzadeh, Hridesh Rajan and Ali Darvish. "On exceptions, events and observer chains" Fukuoka, JapanVol. Proceedings of the 12th Annual International Conference on Aspect-Oriented Software Development (AOSD '13) (2013) p. 185 - 196
Available at: http://works.bepress.com/hridesh-rajan/56/