- 1、本文档共14页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
TicklingJavawithaFeather.PDF
Electronic Notes in Theoretical Computer Science 238 (2009) 3–16
/locate/entcs
Tickling Java with a Feather
Tristan O.R. Allwood1 Susan Eisenbach2
Department of Computing
Imperial College
London
United Kingdom
Abstract
Fragments of mainstream programming languages are formalised in order to show desirable prop-
erties 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.
In 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.
Keywords: Featherweight Java, Tests, Semantics, Oracles
1 Introduction
Writing compilers and type checkers is hard. In addition to the sheer quan-
tity of code, the implementation may be complicated by the desire to produce
code that is efficient and fast. The languages compilers are processing are
ever-increasingly complicated, with sophisticated type rules, and many possi-
ble obscure corner cases. There are also complications with possibly several
intermediate representations being used inside the compiler, each with their
own invariants and properties.
1 Email: tristan.allwood@imperial.ac.uk
2 E
您可能关注的文档
- TheBitcoinP2Pnetwork.PDF
- ThecaseofSeasonalClosurefor.PDF
- TheCenterforExcellenceinWriting.doc
- TheChallengerExplosion.docx
- ThechangingfaceoftheEnglishlanguage(P4-5).ppt
- TheChipIstheNetwork.PDF
- TheCollegeEnglishPaperless.PDF
- TheDebateonNetNeutralityA.PDF
- Thefateofmovietitlesintranslation.doc
- TheGassmannstory.PDF
文档评论(0)