Safe "Open-World" Designs in Java and GJ : Revised Version


Dateien zu dieser Ressource

Prüfsumme: MD5:6ad6cbde3bd1e131a665054c1220f21b

NISSEN, Marco, Karsten WEIHE, 1999. Safe "Open-World" Designs in Java and GJ : Revised Version

@unpublished{Nissen1999"Open-6405, title={Safe "Open-World" Designs in Java and GJ : Revised Version}, year={1999}, author={Nissen, Marco and Weihe, Karsten} }

2011-03-24T16:12:29Z deposit-license Weihe, Karsten Nissen, Marco 2011-03-24T16:12:29Z eng Weihe, Karsten 1999 By open-world design we mean that collaborating classes are so loosely coupled that changes in one class do not propagate to the other classes, and single classes can be isolated and integrated in other contexts. Of course, this is what maintainability and reusability is all about.<br /><br />It is folklore knowledge that generic language features are helpful for the implementation of basic algorithms (such as sorting) and data structures (such as stacks). The insight is by far less common that genericity is generally useful to render the coupling of collaborating classes loose, yet still (statically) safe.<br /><br />The intent of the paper is two-fold: first of all, we will have to lay out a base for fruitful discussions of this topic. It will turn out that the design goal "open world" is surprisingly ambitious even if we restrict our attention to a collaborative task as simple as attribute access. Second, we will try to demonstrate that in Java even an open-world design of mere attribute access can only be achieved if static safety is sacrificed, and that this conflict is unresolvable even if the attribute type is fixed.<br /><br />In contrast, generic language features allow the combination of both goals. As a consequence, genericity should be viewed as a first-class design feature, because generic language features are preferably applied in many situations in which object-orientedness seems appropriate.<br /><br />We chose Java as the base of the discussion because Java is commonly known and several advanced features of Java aim at a loose coupling of classes. On the other hand, the discussion of generic language features will be based on GJ, which is a generic extension of Java. In particular, the paper is intended to make a strong point in favor of generic extensions of Java. Safe "Open-World" Designs in Java and GJ : Revised Version application/pdf Nissen, Marco

Dateiabrufe seit 01.10.2014 (Informationen über die Zugriffsstatistik)

preprint_066_02.pdf 38

Das Dokument erscheint in:

KOPS Suche


Mein Benutzerkonto