DocumentCode
3064370
Title
Extending Dynamic Constraint Detection with Polymorphic Analysis
Author
Kuzmina, Nadya ; Gamboa, Ruben
Author_Institution
Univ. of Wyoming, Laramie
fYear
2007
fDate
20-26 May 2007
Firstpage
1
Lastpage
1
Abstract
The general technique for dynamically detecting likely invariants, as implemented by Daikon, lacks specific object- oriented support for polymorphism. Daikon examines only the declared type of a variable which prohibits it from examination of the runtime variables in the presence of polymorphism. The approach presented in this paper extends the technique to consider the runtime type of a polymorphic variable, which may have different declared and runtime types. The runtime behavior of a polymorphic variable is captured by polymorphic constraints which have the form of an implication with the name of the runtime class in the antecedent. We demonstrate the improved accuracy of the dynamically detected specification on the Money example from the JUnit testing framework tutorial. Polymorphic constraints are shown to reveal the specification of the runtime behavior of the example.
Keywords
object-oriented programming; JUnit testing framework tutorial; dynamic constraint detection; object-oriented support; polymorphic analysis; polymorphism; runtime variables; Java; Object oriented programming; Prototypes; Runtime; Testing;
fLanguage
English
Publisher
ieee
Conference_Titel
Dynamic Analysis, 2007. WODA '07. Fifth International Workshop on
Conference_Location
Minneapolis, MN
Print_ISBN
0-7695-2963-1
Type
conf
DOI
10.1109/WODA.2007.3
Filename
4273458
Link To Document