ACM Home Page
Please provide us with feedback. Feedback
Intersection types in Java
Full text PdfPdf (479 KB)
Source
ACM International Conference Proceeding Series; Vol. 347 archive
Proceedings of the 6th international symposium on Principles and practice of programming in Java table of contents
Modena, Italy
SESSION: Java language issues table of contents
Pages 181-188  
Year of Publication: 2008
ISBN:978-1-60558-223-8
Author
Martin Plümicke  University of Cooperative Education Stuttgart, Florianstraße, Horb
Sponsor
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 8,   Downloads (12 Months): 37,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1411732.1411757
What is a DOI?

ABSTRACT

In the past we analyzed typeless Java programs. One of our results was, that there may be different correct typings for one method. This means that the principal types of such methods are intersection types. We presented a type-inference algorithm. For typeless Java methods the algorithm infers its principal intersection type. Unfortunately, like Java byte-code, Java does not allow intersection types.

In this paper we present an algorithm, which resolves intersection types of Java methods, such that Java programs with standard typings are generated.

In the algorithm we have to differentiate two cases of intersection types. On the one hand there are methods with intersection types, where for all types the same code is executed. On the other hand there are methods, which call in dependence to its typings different methods. These two cases have to be treated differently during type resolving.

Finally, we will see that this differentiation leads to a refined definition of Java method principal types.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
G. Boudol and P. Zimmer. On type inference in the intersection type discipline. Electronic Notes in Theoretical Computer Science, 136:23--42, 2005.
 
3
M. Coppo and M. Dezani-Ciancaglini. An extension of the basic functionality theory for the λ-calculus. Notre Dame J. Formal Logic, 21(4):685--693, 1980.
4
 
5
 
6
J. R. Hindley. Types with intersection: An introduction. Formal Aspects of Computing, 4(5):470--486, 1992.
 
7
8
 
9
10
11
 
12
S. van Bakel. Principal type schemes for the strict type assignment system. Journal of Logic and Computing, 3(6):643--670, 1993.
 
13