Proceedings of the 13th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications 1998
DOI: 10.1145/286936.286957
|View full text |Cite
|
Sign up to set email alerts
|

Making the future safe for the past

Abstract: We present GJ, a design that extends the Java programming language with generic types and methods. These are both explained and implemented by translation into the unextended language. The translation closely mimics the way generics are emulated by programmers: it erases all type parameters, maps type variables to their bounds, and inserts casts where needed. Some subtleties of the translation are caused by the handling of overriding.GJ increases expressiveness and safety: code utilizing generic libraries is n… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
7
0

Year Published

2002
2002
2020
2020

Publication Types

Select...
8
1

Relationship

2
7

Authors

Journals

citations
Cited by 286 publications
(7 citation statements)
references
References 15 publications
(13 reference statements)
0
7
0
Order By: Relevance
“…The method has signature Equal(that a) bool. The situation where a type parameter appears in its own bound is known as F-bounded polymorphism [Canning et al 1989], and a similar idiom is common in Java with generics [Bracha et al 1998;Naftalin and Wadler 2006].…”
Section: Fgg By Examplementioning
confidence: 99%
“…The method has signature Equal(that a) bool. The situation where a type parameter appears in its own bound is known as F-bounded polymorphism [Canning et al 1989], and a similar idiom is common in Java with generics [Bracha et al 1998;Naftalin and Wadler 2006].…”
Section: Fgg By Examplementioning
confidence: 99%
“…Finally, virtual classes [MMP89,EOC06], dependent classes [GMO07], and generics [MMN75,BOSW98] are mechanisms to parameterize classes. That work is vaguely related to PCCs in that it is particularly useful for collection classes such as lists, sets, etc.…”
Section: Other Class-instance Associationsmentioning
confidence: 99%
“…A heterogeneous translation generates separate copies of the generic code for every set of type arguments that its type parameters can be instantiated with (Kennedy and Syme 2001;Leroy 1992;Morrison et al 1991). A homogeneous translation generates a single copy in which each type parameter is erased to a top type such as Object that can accommodate values of any type (Bracha et al 1998). The homogeneous approach has poor performance.…”
Section: Application To Specializationmentioning
confidence: 99%