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
Conference DaySun 13 JanDisplayed time zone: Belfast change
13:30 - 15:30
|Invited Talk: Resource-Aware Session Types|
Jan HoffmannCarnegie Mellon University
|Invited Talk: A Session Type Provider: Compile-time Generation of Session Types with Interaction Refinements|
Rumyana NeykovaBrunel University LondonFile Attached
|Getting Rid of Null-Dereferences – Behavioural Types to the Rescue|
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