Featherwieght Java: A Minimal Core Calculus for Java and GJ

Atsushi Igarashi, Benjamin C. Pierce, Philip Wadler

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract / Description of output

Several recent studies have introduced lightweight versions of Java: reduced languages in which complex features like threads and reflection are dropped to enable rigorous arguments about key properties such as type safety. We carry this process a step further, omitting almost all features of the full language (including interfaces and even assignment) to obtain a small calculus, Featherweight Java, for which rigorous proofs are not only possible but easy.Featherweight Java bears a similar relation to full Java as the lambda-calculus does to languages such as ML and Haskell. It offers a similar computational “feel,” providing classes, methods, fields, inheritance, and dynamic typecasts, with a semantics closely following Java's. A proof of type safety for Featherweight Java thus illustrates many of the interesting features of a safety proof for the full language, while remaining pleasingly compact. The syntax, type rules, and operational semantics of Featherweight Java fit on one page, making it easier to understand the consequences of extensions and variations.As an illustration of its utility in this regard, we extend Featherweight Java with generic classes in the style of GJ (Bracha, Odersky, Stoutamire, and Wadler) and sketch a proof of type safety. The extended system formalizes for the first time some of the key features of GJ.
Original languageEnglish
Title of host publicationProceedings of the 1999 ACM SIGPLAN Conference on Object-Oriented Programming Systems, Languages Applications (OOPSLA '99), Denver, Colorado, USA, November 1-5, 1999.
Number of pages15
ISBN (Print)1-58113-238-7
Publication statusPublished - 1999


Dive into the research topics of 'Featherwieght Java: A Minimal Core Calculus for Java and GJ'. Together they form a unique fingerprint.

Cite this