Skip to content
Free planNo credit card requiredStart writing

book · 2012

Implementing JML Contracts with AspectJ: Improving instrumentation and checking of JML contracts

Henrique Rebêlo, Ricardo Lima, Mrcio L. Cornlio

Cited by 0Abstract and details only

Abstract

The Java Modeling Language (JML) is a formal interface specification language designed for Java. It was developed with the aim of improving the functional software correctness of Java applications. JML has a rich set of features for specifying Java applications, including abstract specifications, method and type specifications, and multiple inheritance specifications. The current JML compiler (jmlc) does not work properly when applied to Java dialects such as Java ME. The instrumented code generated by the original JML compiler uses the Java reflection mechanism and data structures not supported by Java ME platform. In order to overcome this limitation, our new JML compiler --- ajmlc (AspectJ JML Compiler) --- uses AspectJ to instrument Java code with JML contracts. A set of translation rules are defined from JML contracts into AspectJ program code. The result is a code compliant with both Java SE and Java ME applications. The translation rules handle a number of JML specifications, such as pre-, postconditions, and invariants. This book also includes proofs of concept to compare the size of the final code generated by our compiler with the code size produced by the jmlc compiler.

Cite this paper

APA 7

Rebêlo, H., Lima, R., & Cornlio, M. L. (2012). Implementing JML Contracts with AspectJ: Improving instrumentation and checking of JML contracts.

MLA 9

Rebêlo, Henrique, et al. “Implementing JML Contracts with AspectJ: Improving instrumentation and checking of JML contracts.” 2012.

Chicago

Rebêlo, Henrique, Ricardo Lima, and Mrcio L. Cornlio. 2012. “Implementing JML Contracts with AspectJ: Improving instrumentation and checking of JML contracts.”

Harvard

Rebêlo, H., Lima, R. and Cornlio, M.L. (2012) ‘Implementing JML Contracts with AspectJ: Improving instrumentation and checking of JML contracts’.

BibTeX
@book{rebelo2012implementing,
  title = {{Implementing JML Contracts with AspectJ: Improving instrumentation and checking of JML contracts}},
  author = {Rebêlo, Henrique and Lima, Ricardo and Cornlio, Mrcio L.},
  year = {2012}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.