Adding Type Parameterization to the Java ™ Language

14Citations
Citations of this article
24Readers
Mendeley users who have this article in their library.

Abstract

Although the Java programming language has achieved widespread acceptance, one feature that seems sorely missed is the ability to use type parameters (as in Ada generics, C++ templates, and ML polymorphic functions or data types) to allow a general concept to be instantiated to one or more specific types. In this paper, we propose parameterized classes and interfaces in which the type parameter may be constrained to either implement a given interface or extend a given class. This design allows the body of a parameterized class to refer to methods on objects of the parameter type, without introducing any new type relations into the language. We show that these Java extensions may be implemented by expanding parameterized classes at class load time, without any extension or modification to existing Java bytecode, verifier or bytecode interpreter.

Cite

CITATION STYLE

APA

Agesen, O., Freund, S. N., & Mitchell, J. C. (1997). Adding Type Parameterization to the Java TM Language. SIGPLAN Notices (ACM Special Interest Group on Programming Languages), 32(10), 49–65. https://doi.org/10.1145/263700.263720

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free