Type checking annotation-based product lines

  • Authors:
  • Christian Kästner;Sven Apel;Thomas Thüm;Gunter Saake

  • Affiliations:
  • Philipps University Marburg, Germany;University of Passau, Germany;University of Magdeburg, Germany;University of Magdeburg, Germany

  • Venue:
  • ACM Transactions on Software Engineering and Methodology (TOSEM)
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Software product line engineering is an efficient means of generating a family of program variants for a domain from a single code base. However, because of the potentially high number of possible program variants, it is difficult to test them all and ensure properties like type safety for the entire product line. We present a product-line-aware type system that can type check an entire software product line without generating each variant in isolation. Specifically, we extend the Featherweight Java calculus with feature annotations for product-line development and prove formally that all program variants generated from a well typed product line are well typed. Furthermore, we present a solution to the problem of typing mutually exclusive features. We discuss how results from our formalization helped implement our own product-line tool CIDE for full Java and report of our experience with detecting type errors in four existing software product line implementations.