Sciweavers

SAC
2005
ACM

Selective method combination in mixin-based composition

13 years 9 months ago
Selective method combination in mixin-based composition
A mixin is a reusable module that provides uniform extend modifications to classes. It is an abstract subclass that is composable with a variety of superclasses. In mixinbased composition, however, the problem of accidental overriding arises. A method declared in a mixin may accidentally overrides its superclasses’ method. To tackle this problem, we propose a new approach of method lookup that allows selective method combination; that is, when we have multiple methods with the same name and the same formal parameter types in a composition, we can select which method to execute, and which method is called when there exists a method call to super. This proposal is an extension of hygienic mixins with stronger expressive power. This proposal is implemented in McJava, an extension of Java with mixintypes. Its compilation is achieved by source code translation to Java thus making it runnable on a standard Java virtual machine. Categories and Subject Descriptors D.3.3 [Programming Langua...
Tetsuo Kamina, Tetsuo Tamai
Added 26 Jun 2010
Updated 26 Jun 2010
Type Conference
Year 2005
Where SAC
Authors Tetsuo Kamina, Tetsuo Tamai
Comments (0)