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 metadatas

Cited literature [32 references]  Display  Hide  Download

https://hal.inria.fr/inria-00533461
Contributor : Lse Lse <>
Submitted on : Saturday, November 6, 2010 - 2:50:34 PM
Last modification on : Wednesday, January 10, 2018 - 9:44:32 AM
Long-term archiving on : Friday, October 26, 2012 - 3:05:18 PM

File

Berg05b-OOSPLA05-classboxJ.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : inria-00533461, version 1

Collections

Citation

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⟩

Share

Metrics

Record views

97

Files downloads

157