Affiliation:
1. Oxford University Computing Laboratory, Oxford, United Kingdom
Abstract
Modern IDEs for object-oriented languages like Java provide support for a basic set of simple automated refactorings whose behaviour is easy to describe intuitively. It is, however, surprisingly difficult to specify their behaviour in detail. In particular, the popular precondition-based approach tends to produce somewhat unwieldy descriptions if advanced features of the object language are taken into account. This has resulted in refactoring implementations that are complex, hard to understand, and even harder to maintain, yet these implementations themselves are the only precise "specification" of many refactorings. We have in past work advocated a different approach based on several complementary notions of dependencies that guide the implementation, and on the concept of microrefactorings that structure it. We show in this work that these concepts are powerful enough to provide high-level specifications of many of the refactorings implemented in Eclipse. These specifications are precise enough to serve as the basis of a clean-room reimplementation of these refactorings that is very compact, yet matches Eclipse's for features and outperforms it in terms of correctness.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Cited by
41 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. A new architecture reconciling refactorings and transformations;Journal of Computer Languages;2024-08
2. An Automated Approach to Extracting Local Variables;Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering;2023-11-30
3. Adventure of a Lifetime: Extract Method Refactoring for Rust;Proceedings of the ACM on Programming Languages;2023-10-16
4. Advancements in Code Restructuring: Enhancing System Quality through Object-Oriented Coding Practices;2023 IEEE 27th International Conference on Intelligent Engineering Systems (INES);2023-07-26
5. PYEVOLVE: Automating Frequent Code Changes in Python ML Systems;2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE);2023-05