DocumentCode :
3643592
Title :
Building and using pluggable type-checkers
Author :
Werner Dietl;Stephanie Dietzel;Michael D. Ernst;Kivanc Muslu;Todd W. Schiller
Author_Institution :
University of Washington, Seattle, WA, USA
fYear :
2011
fDate :
5/1/2011 12:00:00 AM
Firstpage :
681
Lastpage :
690
Abstract :
This paper describes practical experience building and using pluggable type-checkers. A pluggable type-checker refines (strengthens) the built-in type system of a programming language. This permits programmers to detect and prevent, at compile time, defects that would otherwise have been manifested as run-time errors. The prevented defects may be generally applicable to all programs, such as null pointer dereferences. Or, an application-specific pluggable type system may be designed for a single application. We built a series of pluggable type checkers using the Checker Framework, and evaluated them on 2 million lines of code, finding hundreds of bugs in the process. We also observed 28 first-year computer science students use a checker to eliminate null pointer errors in their course projects. Along with describing the checkers and characterizing the bugs we found, we report the insights we had throughout the process. Overall, we found that the type checkers were easy to write, easy for novices to productively use, and effective in finding real bugs and verifying program properties, even for widely tested and used open source projects.
Keywords :
"Documentation","Java","Computer bugs","Arrays","Testing","Runtime"
Publisher :
ieee
Conference_Titel :
Software Engineering (ICSE), 2011 33rd International Conference on
ISSN :
0270-5257
Print_ISBN :
978-1-4503-0445-0
Type :
conf
DOI :
10.1145/1985793.1985889
Filename :
6032509
Link To Document :
بازگشت