Login

Pluggable type-checking for custom type qualifiers in Java

Show full item record




Title: Pluggable type-checking for custom type qualifiers in Java
Author: Papi, Matthew M.; Ali, Mahmood; Correa Jr., Telmo Luis; Perkins, Jeff H.; Ernst, Michael D.
Other Contributors: Program Analysis
Advisor: Michael Ernst
Issue Date: 2007-09-17
Abstract: We have created a framework for adding custom type qualifiers to the Javalanguage in a backward-compatible way. The type system designer definesthe qualifiers and creates a compiler plug-in that enforces theirsemantics. Programmers can write the type qualifiers in their programs andbe informed of errors or assured that the program is free of those errors.The system builds on existing Java tools and APIs.In order to evaluate our framework, we have written four type-checkersusing the framework: for a non-null type system that can detect andprevent null pointer errors; for an interned type system that can detectand prevent equality-checking errors; for a reference immutability typesystem, Javari, that can detect and prevent mutation errors; and for areference and object immutability type system, IGJ, that can detect andprevent even more mutation errors. We have conducted case studies usingeach checker to find real errors in existing software. These case studiesdemonstrate that the checkers and the framework are practical and useful.
URI: http://hdl.handle.net/1721.1/38878
Other Identifiers: MIT-CSAIL-TR-2007-047
Series/Report no.: Massachusetts Institute of Technology Computer Science and Artificial Intelligence Laboratory

Files in this item

Files Size Format View
MIT-CSAIL-TR-2007-047.pdf 305.1Kb PDF View/Open

Files in this item

Files Size Format View
MIT-CSAIL-TR-2007-047.ps 1.215Mb Postscript View/Open

This item appears in the following Collection(s)

Show full item record

Search DSpace@MIT


Advanced Search

Browse

My Account

Links