National University of Singapore
COMPILING AND DETECTING TYPE ERRORS IN INCOMPLETE JAVA PROGRAMS WITH GENERICS
Abstract
dc:description.abstractIncomplete programs are ubiquitous in web repositories, evolving software projects and beyond. However, they are difficult to work with as they contain references to undeclared constructs. Earlier efforts by the programming languages community have offered solutions to this problem across several programming languages, but they are not able to work with incomplete programs containing generic types and do not respect the type safety of the incomplete program. This thesis is, to our knowledge, the programming languages community's first attempt at tackling this problem: to automatically complete incomplete Java programs containing generics so they can be compiled, without making changes to them or undermining type safety. We present a novel constraint-based algorithm and an early prototype, JavaCIP, that does so by creating the declarations of classes or interfaces that the incomplete program refers to, or cites the existence of non-trivial type errors in it.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- FOO YONG QI