Dao, Thi-Huong and Le, Hong and Truong, Ninh (2017) An Approach to Analyzing Execution Preservation in Java Program Refactoring. In: Context-Aware Systems and Applications. 5th International Conference, ICCASA 2016, Thu Dau Mot, Vietnam, November 24-25, 2016, Proceedings.
24476.pdf
Download (1MB)
Abstract
Code refactoring is a technique that improves the existing code in order to make software easier to understand and more extensible without changing the external behavior. Software design patterns, programming language independent reusable solutions to comment problems, are well-known in Java communities. On one hand, the refactoring using design patterns brings many benefits such as cost saving, flexibilities, and maintainability. On the other hand, it potentially causes bugs or changes execution behavior of Java programs. This paper proposes a new approach to checking behavior preservation properties of Java programs after applying design patterns. We present new definitions to compute pre/post conditions of program behavior. In the next step, the paper makes use of Java Modeling Language (JML) to represent and check if the refactored program neglects to preserve the external behavior. A motivating example of Adaptive Road Traffic Control (ARTC) is given to illustrate the approach in detail.
| Item Type: | Conference or Workshop Item (UNSPECIFIED) |
|---|---|
| Uncontrolled Keywords: | Refactoring, Design patterns, Consistency, ARTC |
| Date Deposited: | 04 Mar 2026 10:55 |
| Last Modified: | 20 Nov 2026 11:48 |
| URI: | https://eprints.eai.eu/id/eprint/15844 |
