Abstract | ||
---|---|---|
Variant parametric types [8] have been introduced to provide a flexible subtyping mechanism for generic types, and are recently being developed into Java wildcards [15], shipped worldwide with the JDK 1.5 release. The two approaches, which are strictly related, retain safety by providing rather peculiar and non-trivial mechanisms to restrict access to a class functionalities (methods and fields). In this paper we aim at studying a unified framework to describe this issue in detail, and to facilitate the understanding and exploitation of this new programming concept.Our work is both technical and conceptual. On the one hand, we provide formal rules to access restriction and specialise them for the two approaches, so as to emphasise similarities and differences. On the other hand, we show that such rules promote a natural description and understanding of access restriction in terms of the ability of (instances of) a generic class to produce/consume elements of the abstracted type. |
Year | DOI | Venue |
---|---|---|
2005 | 10.1145/1066677.1066993 | SAC |
Keywords | Field | DocType |
natural description,formal rule,abstracted type,access restriction,generic class,variant parametric type,generic type,class functionalities,java wildcards,flexible subtyping mechanism,understanding access restriction,new programming concept,subtyping,java generics | Programming language,Wildcard character,Computer science,Parametric statistics,Generics in Java,Subtyping,Java,Database,restrict | Conference |
ISBN | Citations | PageRank |
1-58113-964-0 | 2 | 0.40 |
References | Authors | |
10 | 2 |
Name | Order | Citations | PageRank |
---|---|---|---|
Giovanni Rimassa | 1 | 1486 | 99.40 |
Mirko Viroli | 2 | 2278 | 156.77 |