Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches - Inria - Institut national de recherche en sciences et technologies du numérique
Communication Dans Un Congrès Année : 2013

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

Résumé

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.
Fichier principal
Vignette du fichier
978-3-642-39614-4_4_Chapter.pdf (145.07 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-01492776 , version 1 (20-03-2017)

Licence

Identifiants

Citer

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⟩
48 Consultations
108 Téléchargements

Altmetric

Partager

More