Validating structural properties of nested objects
Darrell Reimer, Edith Schonberg, Kavitha Srinivas et al. · Companion to the ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA Companion) · 2004
Frameworks are widely used to facilitate software reuse and accelerate development time. However, there are currently no systematic mechanisms to enforce the explicit and implicit rules of these frameworks. This paper focuses on a class of framework rules that place restrictions on the properties of data structures in framework applications. We present a mechanism to enforce these rules by the use of a generic "bad store template" which can be customized for different rule instances. We demonstrate the use of this template to validate specific bad store rules within J2EE framework applications. Violations of these rules cause subtle defects which manifest themselves at runtime as data loss, data corruption, or race conditions. Our algorithm to detect "bad stores" is implemented in the Smart Analysis-Based Error Reduction (SABER) validation tool, where we pay special attention to facilitating problem understanding and remediation, by providing detailed problem explanations. We present experimental results on four commercially deployed e-commerce applications that show over 200 "bad stores".
Cited by 7 works. doi:10.1145/1028664.1028774
Authors
- Darrell Reimer
- Edith Schonberg
- Kavitha Srinivas
- Harini Srinivasan
- Julian Dolby
- Aaron Kershenbaum
- Larry Koved
References
- Eraser
- Bandera
- Checking system rules using system-specific, programmer-written compiler extensions
- A static analyzer for finding dynamic programming errors
- Lint, a C Program Checker
- The S LAM project
- Finding bugs is easy
- Static detection of dynamic memory errors
- Context-sensitive interprocedural points-to analysis in the presence of function pointers
- ESP