Skip to Main content Skip to Navigation
New interface
Conference papers

Classbox/J: Controlling the Scope of Change in Java

Abstract : Unanticipated changes to complex software systems can introduce anomalies such as duplicated code, suboptimal inheritance rela- tionships 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 imple- mented, and thus reducing the need for convoluted design anoma- lies. In this paper we demonstrate how classboxes can be imple- mented 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 intro- duces. 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.
Document type :
Conference papers
Complete list of metadata

Cited literature [32 references]  Display  Hide  Download
Contributor : Lse Lse Connect in order to contact the contributor
Submitted on : Saturday, November 6, 2010 - 2:50:34 PM
Last modification on : Tuesday, May 3, 2022 - 11:04:02 AM
Long-term archiving on: : Friday, October 26, 2012 - 3:05:18 PM


Files produced by the author(s)


  • HAL Id : inria-00533461, version 1



Alexandre Bergel, Stéphane Ducasse, Oscar Nierstrasz. Classbox/J: Controlling the Scope of Change in Java. International Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA'05), Oct 2005, San Diego, United States. ⟨inria-00533461⟩



Record views


Files downloads