Proceedings of the 12th Workshop on Formal Techniques for Java-Like Programs 2010
DOI: 10.1145/1924520.1924522
|View full text |Cite
|
Sign up to set email alerts
|

Towards a semantic model for Java wildcards

Abstract: Wildcard types enrich the types expressible in Java, and extend the set of typeable Java programs. Syntactic models and proofs of soundness for type systems related to Java wildcards have been suggested in the past, however, the semantics of wildcards has not yet been studied.In this paper we propose a semantic model for Java wildcards, inspired by work on semantic subtyping, which traditionally interprets types as sets of possible values. To easily reflect the nominal type system of Java, our model is defined… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
3
1
1

Citation Types

0
8
0

Year Published

2011
2011
2017
2017

Publication Types

Select...
3
2

Relationship

0
5

Authors

Journals

citations
Cited by 8 publications
(8 citation statements)
references
References 16 publications
0
8
0
Order By: Relevance
“…We also did a manual investigation for implicitly infinite proofs and found none. These findings are significant because Cameron et al proved soundness of wildcards assuming all wildcards and subtyping proofs translate to finite traditional existential types and subtyping proofs [3], and Summers et al gave semantics to wildcards under the same assumptions [14], so although we have determined these assumptions do not hold theoretically our survey demonstrates that they do hold in practice. Nonetheless, we expect that Cameron et al and Summers et al would be able to adapt their work to implicitly infinite types and proofs now that the problem has been identified.…”
Section: Evaluation Of Restrictionsmentioning
confidence: 70%
See 1 more Smart Citation
“…We also did a manual investigation for implicitly infinite proofs and found none. These findings are significant because Cameron et al proved soundness of wildcards assuming all wildcards and subtyping proofs translate to finite traditional existential types and subtyping proofs [3], and Summers et al gave semantics to wildcards under the same assumptions [14], so although we have determined these assumptions do not hold theoretically our survey demonstrates that they do hold in practice. Nonetheless, we expect that Cameron et al and Summers et al would be able to adapt their work to implicitly infinite types and proofs now that the problem has been identified.…”
Section: Evaluation Of Restrictionsmentioning
confidence: 70%
“…super Number> is not a subtype of Numbers<Number>, which would be subtypes should one use a complete equivalence algorithm. While from a theoretical perspective this seems to be a weakness, as Summers et al have argued [14], from a practical perspective it is a strength since it forces programmers to use the more precise type whenever they actually rely on that extra precision rather than obscure it through implicit equivalences. Plus, our weaker notion of equivalence is still strong enough to achieve our goal of allowing equivalent types to be used interchangeably (provided they satisfy all applicable restrictions).…”
Section: Canonicalizationmentioning
confidence: 99%
“…Separately, probably as the most complex feature of Java generics, the addition of "wildcards" (i.e., wildcard type parameters) to Java (in [49], which is based on the earlier research in [29]) also generated some research that is particularly focused on modeling wildcards and variance annotations [48,12,31,11,46]. This significant and substantial work points yet to the need for more research on wildcards and generics.…”
Section: Related Workmentioning
confidence: 99%
“…Summers and Cameron et al [6,43] characterized wildcards in terms of existential types. Our encoding of wildcards in FXG similarly uses existentials, over constraint terms rather than types, however.…”
Section: Related Workmentioning
confidence: 99%
“…Our encoding of wildcards in FXG similarly uses existentials, over constraint terms rather than types, however. Summers et al [42,43] observe that care must be taken to model assignment to avoid an unsoundness. We leave this extension for future work.…”
Section: Related Workmentioning
confidence: 99%