Synthesis of interface specifications for Java classes
Alur R, Cerny P, Madhusudan P, Nam W. 2005. Synthesis of interface specifications for Java classes. Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages. POPL: Principles of Programming Languages, 98–109.
Download
No fulltext has been uploaded. References only!
Conference Paper
| Published
| English
Author
Alur, Rajeev;
Cerny, PavolISTA;
Madhusudan, P.;
Nam, Wonhong
Abstract
While a typical software component has a clearly specified (static) interface in terms of the methods and the input/output types they support, information about the correct sequencing of method calls the client must invoke is usually undocumented. In this paper, we propose a novel solution for automatically extracting such temporal specifications for Java classes. Given a Java class, and a safety property such as "the exception E should not be raised", the corresponding (dynamic) interface is the most general way of invoking the methods in the class so that the safety property is not violated. Our synthesis method first constructs a symbolic representation of the finite state-transition system obtained from the class using predicate abstraction. Constructing the interface then corresponds to solving a partial-information two-player game on this symbolic graph. We present a sound approach to solve this computationally-hard problem approximately using algorithms for learning finite automata and symbolic model checking for branching-time logics. We describe an implementation of the proposed techniques in the tool JIST--- Java Interface Synthesis Tool---and demonstrate that the tool can construct interfaces accurately and efficiently for sample Java2SDK library classes.
Publishing Year
Date Published
2005-01-12
Proceedings Title
Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages
Publisher
ACM
Page
98 - 109
Conference
POPL: Principles of Programming Languages
Conference Location
Long Beach, CA, United States
Conference Date
2005-01-12 – 2005-01-14
IST-REx-ID
Cite this
Alur R, Cerny P, Madhusudan P, Nam W. Synthesis of interface specifications for Java classes. In: Proceedings of the 32nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. ACM; 2005:98-109. doi:10.1145/1040305.1040314
Alur, R., Cerny, P., Madhusudan, P., & Nam, W. (2005). Synthesis of interface specifications for Java classes. In Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages (pp. 98–109). Long Beach, CA, United States: ACM. https://doi.org/10.1145/1040305.1040314
Alur, Rajeev, Pavol Cerny, P. Madhusudan, and Wonhong Nam. “Synthesis of Interface Specifications for Java Classes.” In Proceedings of the 32nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, 98–109. ACM, 2005. https://doi.org/10.1145/1040305.1040314.
R. Alur, P. Cerny, P. Madhusudan, and W. Nam, “Synthesis of interface specifications for Java classes,” in Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages, Long Beach, CA, United States, 2005, pp. 98–109.
Alur R, Cerny P, Madhusudan P, Nam W. 2005. Synthesis of interface specifications for Java classes. Proceedings of the 32nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages. POPL: Principles of Programming Languages, 98–109.
Alur, Rajeev, et al. “Synthesis of Interface Specifications for Java Classes.” Proceedings of the 32nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, ACM, 2005, pp. 98–109, doi:10.1145/1040305.1040314.