<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-22T14:00:51Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/10409" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/10409</identifier><datestamp>2025-03-26T23:31:38Z</datestamp><setSpec>com_10012_9924</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9930</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Dietl, Werner</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Lhoták, Ondřej</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="author" authority="d0e8f656-f4aa-4967-b708-591f83f48283" confidence="600">Brotherston, Daniel, Scott</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2016-04-27T19:15:25Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2016-04-27T19:15:25Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2016-04-27</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2016-04-11</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/10409</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">Gradual typing provides the ability to safely mix untyped or dynamically typed code&#xd;
 with statically typed code while maintaining, within the statically typed portion, the guarantees&#xd;
 claimed by the static typing. It is motivated by the idea that different amounts of&#xd;
 typing are valuable at different times during a software projects development. Less typing&#xd;
 is useful at the prototyping stage, where requirements change frequently, and rapid development&#xd;
 is important. More typing is useful in more mature projects where maintenance,&#xd;
 documentation, and correctness become critically important. Gradual aims to enable a&#xd;
 project to gradually move from one side of this spectrum to the other.&#xd;
 &#xd;
 Pluggable typing and pluggable typing frameworks aim to allow a language to support&#xd;
 many different type systems, that can be developed by type system designers and plugged&#xd;
 into the existing compiler infrastructure. The Checker Framework is built on the OpenJDK➋&#xd;
 Java compiler, and provides a framework to develop additional type systems that&#xd;
 can be applied to Java code. It has been tested and proven using many other type systems.&#xd;
 However, not all code will adopt all type systems, so a developer who wishes to check their&#xd;
 project with a given type system may still link against other components that are not&#xd;
 checked with that type system. Additionally, a developer may wish to adopt a new type&#xd;
 system, but be unwilling to spend the effort necessary to annotate all the existing code for&#xd;
 the new type system.&#xd;
 &#xd;
 The gradual extension to the Checker Framework aims to improve type safety of partially&#xd;
 applied Checker Framework type systems, using gradual typing techniques. A prototype&#xd;
 was built, and the gradual nullness type system was designed to prove it.&#xd;
 &#xd;
 Defining the checked-unchecked boundary is crucial. Even though the use case is limited&#xd;
 to individual files being either entirely annotated or entirely unannotated, because Java is&#xd;
 an object-oriented language with inheritance, many different boundary conditions present&#xd;
 themselves. This work analyses each boundary condition in detail, and presents options for&#xd;
 runtime tests to ensure that values crossing the boundary meet the static type requirements&#xd;
 on the other side. The nature of the tests, and the method of passing the static type to&#xd;
 the runtime environment is discussed.&#xd;
 &#xd;
 This work presents the design of the prototype, implemented in the Checker Framework&#xd;
 and OpenJDK➋. It discusses the design of the OpenJDK➋ compiler, the Checker&#xd;
 Framework, and how they work together. It demonstrates how the abstract syntax tree&#xd;
 can be modified in order to effect insertion of the runtime tests. It discusses the specific&#xd;
 implementation details needed to implement each boundary condition runtime test in Java.&#xd;
 &#xd;
 An evaluation of the prototype is completed looking at correctness, both through a set&#xd;
 of synthetic tests, and by inserting artificial errors into an existing real world program;&#xd;
 performance, by running configurations of real world programs designed to model the&#xd;
 motivating examples; and applicability, by comparing the gradual framework with other&#xd;
 options for improving type safety in partially annotated programs.&#xd;
 &#xd;
 Related work on both gradual typing and pluggable typing are discussed. Final remarks&#xd;
 and future work concludes the work.</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">gradual</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">pluggable</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">types</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">java</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">Checker Framework</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">Gradual Pluggable Typing in Java</dim:field>
   <dim:field mdschema="dc" element="type" lang="en">Master Thesis</dim:field>
   <dim:field mdschema="dc" element="pending">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department" lang="en">David R. Cheriton School of Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="discipline" lang="en">Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="grantor" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="uws-etd" element="degree" lang="en">Master of Mathematics</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="advisor">Dietl, Werner</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="advisor">Lhoták, Ondřej</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="affiliation1" lang="en">Faculty of Mathematics</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="city" lang="en">Waterloo</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="country" lang="en">Canada</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="province" lang="en">Ontario</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>