Java bytecode verification for @NonNull types

  • Authors:
  • Chris Male;David J. Pearce;Alex Potanin;Constantine Dymnikov

  • Affiliations:
  • Victoria University of Wellington, NZ;Victoria University of Wellington, NZ;Victoria University of Wellington, NZ;Victoria University of Wellington, NZ

  • Venue:
  • CC'08/ETAPS'08 Proceedings of the Joint European Conferences on Theory and Practice of Software 17th international conference on Compiler construction
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Java's annotation mechanism allows us to extend its type system with non-null types. However, checking such types cannot be done using the existing bytecode verification algorithm. We extend this algorithm to verify nonnull types using a novel technique that identifies aliasing relationships between local variables and stack locations in the JVM. We formalise this for a subset of Java Bytecode and report on experiences using our implementation.