Getting Rid of Null-Dereferences – Behavioural Types to the Rescue
Mungo and StMungo are two type-based analysis tools for a Java-like language that have been developed at Glasgow University.
This paper extends the results of Mungo by presenting a type-based analysis that is able to analyze both method usage and null pointer dereferencing and related errors. The language that we consider is a Java-like language with linear access to fields. Every field can be written to and subsequently readatmost once. Every method of an object must adhere to a usage behaviour that describes the admissible sequences of method calls.
Our type system prevents four kinds of errors related to method and field access. They are
- Method not available
- Field not available
- Method not understood
- Field not understood
Sun 13 Jan
|13:30 - 14:20|
Jan HoffmannCarnegie Mellon University
|14:20 - 15:10|
Invited Talk: A Session Type Provider: Compile-time Generation of Session Types with Interaction Refinements
Rumyana NeykovaBrunel University LondonFile Attached
|15:10 - 15:30|
Hans HüttelDepartment of Computer Science, Aalborg University, Antonio RavaraDepartment of Informatics, Faculty of Sciences and Technology, NOVA University of Lisbon and NOVA LINCS, Adrian FrancalanzaUniversity of Malta, Mario BravettiUniversità di BolognaFile Attached