会议论文详细信息
Concurrency, Specification and Programming
Inference, Targeting and Compatibility in a Type System for Java with SAM Typed Closures
Marco Bellia ; M. Eugenia Occhiuto
Others  :  http://ceur-ws.org/Vol-928/0049.pdf
PID  :  27450
来源: CEUR
PDF
【 摘 要 】

In this paper we consider the new type structure that has been proposed for Java closures, in the last Java Speci cation Language [BS11a]. This structure uses SAM types that are in fact, nominal types instead of the structural, functional types, used in the previous, proposals. In addition, it allows type inference for closures and for closure arguments. Through a technique, already consolidated in previous studies in Java extensions, we extend the calculus FGJ, [IPW01], with interfaces, anonymous classes, closures of the new form and SAM types. We de ne a type system and a reduction semantics for this calculus FGATCJ. Using the type system, we formalize the notions of closure context, target type, compatibility type and closure type as they emerge in [BS11a]. Eventually, we prove the soundness of the type system.

【 预 览 】
附件列表
Files Size Format View
Inference, Targeting and Compatibility in a Type System for Java with SAM Typed Closures 376KB PDF download
  文献评价指标  
  下载次数:4次 浏览次数:14次