%0 Conference Proceedings %T Method Shells: Avoiding Conflicts on Destructive Class Extensions by Implicit Context Switches %+ The University of Tokyo (UTokyo) %A Takeshita, Wakana %A Chiba, Shigeru %< avec comité de lecture %( Lecture Notes in Computer Science %B 12th International Conference on Software Composition (SC) %C Budapest, Hungary %Y Walter Binder %Y Eric Bodden %Y Welf Löwe %I Springer %3 Software Composition %V LNCS-8088 %P 49-64 %8 2013-06-19 %D 2013 %R 10.1007/978-3-642-39614-4_4 %Z Computer Science [cs]Conference papers %X 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. %G English %Z TC 2 %Z WG 2.4 %2 https://inria.hal.science/hal-01492776/document %2 https://inria.hal.science/hal-01492776/file/978-3-642-39614-4_4_Chapter.pdf %L hal-01492776 %U https://inria.hal.science/hal-01492776 %~ IFIP-LNCS %~ IFIP %~ IFIP-TC %~ IFIP-TC2 %~ IFIP-LNCS-8088 %~ IFIP-SC %~ IFIP-WG2-4