Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches

Abstract : We propose method shells, which is a module system for avoiding conflicts on customization by language mechanisms such as aspects in AspectJ and open classes in Ruby. These mechanisms allow programmers to customize a library without rewriting original source code but by only describing differences in a separate file. We call these mechanisms destructive class extensions. A problem with destructive class extensions is conflicts on customization. Different customizations may differently modify the same class. To address this problem, we propose a new module system named method shells. With this system, programmers can avoid conflicts since the module system automatically switches a set of customizations that has to be applied together according to the contexts declared by programmers. We present the idea of this module system and then its formal semantics. We also present an extension of Java that supports method shells.
Document type :
Conference papers
Complete list of metadatas

https://hal.inria.fr/hal-01492776
Contributor : Hal Ifip <>
Submitted on : Monday, March 20, 2017 - 3:34:56 PM
Last modification on : Tuesday, January 16, 2018 - 3:43:54 PM
Long-term archiving on: Wednesday, June 21, 2017 - 1:10:45 PM

File

978-3-642-39614-4_4_Chapter.pd...
Files produced by the author(s)

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

Citation

Wakana Takeshita, Shigeru Chiba. Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches. 12th International Conference on Software Composition (SC), Jun 2013, Budapest, Hungary. pp.49-64, ⟨10.1007/978-3-642-39614-4_4⟩. ⟨hal-01492776⟩

Share

Metrics

Record views

59

Files downloads

118