Classbox/J: Controlling the Scope of Change in Java - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2005

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.
Fichier principal
Vignette du fichier
Berg05b-OOSPLA05-classboxJ.pdf (348.97 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

inria-00533461 , version 1 (06-11-2010)

Identifiers

  • HAL Id : inria-00533461 , version 1

Cite

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⟩
82 View
149 Download

Share

Gmail Facebook X LinkedIn More