2005 · 118 citations · 23 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSystems ProgrammingApplication Programming InterfacesObject-oriented ProgrammingSoftware DesignSoftware MaintenanceSoftware RefactoringType SystemsObject-oriented Language DesignRefinement
Unanticipated changes to complex software systems can introduce anomalies such as duplicated code, suboptimal inheritance relationships and a proliferation of run-time downcasts. Refactoring to eliminate these anomalies may not be an option, at least in certain stages of software evolution. Classboxes are modules that restrict the visibility of changes to selected clients only, thereby offering more freedom in the way unanticipated changes may be implemented, and thus reducing the need for convoluted design anomalies. In this paper we demonstrate how classboxes can be implemented in statically-typed languages like Java. We also present an extended case study of Swing, a Java GUI package built on top of AWT, and we document the ensuing anomalies that Swing introduces. We show how Classbox/J, a prototype implementation of classboxes for Java, is used to provide a cleaner implementation of Swing using local refinement rather than subclassing.
23
F-bounded polymorphism for object-oriented programming
Peter S. Canning, William R. Cook, Walter L. Hill et al. · 1989 · 330 citations
Yannis Smaragdakis, Don Batory · ACM Transactions on Software Engineering and Methodology · 2002 · 318 citations
Conquering aspects with Caesar
Mira Mezini, Klaus Ostermann · 2003 · 303 citations
Using role components in implement collaboration-based designs
Michael VanHilst, David Notkin · 1996 · 258 citations · Full text
Computing, Computer Science, Design +17