Tickling Java with a Feather
File(s)testing-Java-with-fj.pdf (171.39 KB)
Accepted version
Author(s)
Allwood, T
Eisenbach, S
Type
Journal Article
Abstract
Fragments of mainstream programming languages are formalised in order to show desirable properties of their static semantics. We ask if said formalisms could also be used to define a test suite for the mainstream programming language in question, and what the utility of such a suite would be.\r\n\r\nIn this work, we present our findings from testing Java with Featherweight Java (FJ). We take the syntax and binding structure of FJ to define an instance space of non-isomorphic test programs and implementations of FJ type checkers to provide oracles for our tests, to ensure the mainstream implementation conforms with the expectations of FJ. Using these, we evaluate (using code coverage techniques) how much of the Sun OpenJDK javac can be tested by FJ.\r\n
Date Issued
2008
Citation
Electronic Notes in Theoretical Computer Science, 2008, 238 (5), pp.3-16
ISSN
1571-0661
Publisher
Elsevier
Start Page
3
End Page
16
Journal / Book Title
Electronic Notes in Theoretical Computer Science
Volume
238
Issue
5
Copyright Statement
© 2009 Elsevier B.V. All rights reserved. NOTICE: this is the author’s version of a work that was accepted for publication in Electronic Notes in Theoretical Computer Science. Changes resulting from the publishing process, such as peer review, editing, corrections, structural formatting, and other quality control mechanisms may not be reflected in this document. Changes may have been made to this work since it was submitted for publication. A definitive version was subsequently published in ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, VOL:238, ISSUE:5, (2008) DOI:10.1016/j.entcs.2009.09.037
Identifier
http://ldta2008.inf.elte.hu/
Source Volume Number
238