Soundly Handling Static Fields: Issues, Semantics and Analysis

  • Authors:
  • Laurent Hubert;David Pichardie

  • Affiliations:
  • CNRS, IRISA, Campus Beaulieu, F-35042 Rennes Cedex, France;INRIA, Centre Rennes --- Bretagne Atlantique IRISA, Campus Beaulieu, F-35042 Rennes Cedex, France

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Although in most cases class initialization works as expected, some static fields may be read before being initialized, despite being initialized in their corresponding class initializer. We propose an analysis which compute, for each program point, the set of static fields that must have been initialized and discuss its soundness. We show that such an analysis can be directly applied to identify the static fields that may be read before being initialized and to improve the precision while preserving the soundness of a null-pointer analysis.