Metraipolis › archive › dc_4e461a5a4a35

Formalizing and Automating Fine-Grained Move Refactorings Across Methods — arXiv:2608.23377

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.23377
License (as archived)
CC0-1.0
Archived
2026-10-18T08:12:55.188Z
SHA-256 of the archived text
3d51ed7472e4a60505cf7403e91e1fb7c4fbd92dbbeb7c5e606070d8c8e97ec4
Stable URL of this page
https://metraipolis.com/documento/dc_4e461a5a4a35

How to cite

Formalizing and Automating Fine-Grained Move Refactorings Across Methods — arXiv:2608.23377 — arXiv (en), https://arxiv.org/abs/2608.23377 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_4e461a5a4a35 (Metraipolis archive dc_4e461a5a4a35, sha256 3d51ed7472e4a60505cf7403e91e1fb7c4fbd92dbbeb7c5e606070d8c8e97ec4)
BibTeX
@misc{dc4e461a5a4a35,
  title = {Formalizing and Automating Fine-Grained Move Refactorings Across Methods — arXiv:2608.23377},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.23377},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_4e461a5a4a35; sha256 3d51ed7472e4a60505cf7403e91e1fb7c4fbd92dbbeb7c5e606070d8c8e97ec4},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.23377. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Developers use automated Move refactorings to improve the modular structure of source code and the assignment of responsibilities. Class- and method-level Move refactorings are automated in modern IDEs, but statement- and expression-level moves that adjust method boundaries remain largely unautomated. We formalize five variants of Move Statement refactoring as preconditions and steps grounded in four basic conditions covering data reachability, execution count, side effects, and syntactic constraints required for compilation, of which all but the side-effect condition are checked statically. Combined with existing techniques, this also yields finer-grained moves of expressions and partial expressions. We further refine the formalization iteratively against a real project, deriving twenty additional preconditions and steps that handle Java syntactic diversity in practice. We evaluate applicability and compilability on ten projects, and behavior preservation in a case study on one of them: Move Statement refactorings yield compilable code in 93.3-97.0% of applicable cases, and the case study shows that the observed behavioral changes stem from side-effect reordering left to developer judgment, not from defects in the statically checked conditions.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-25 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.23377 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T08:07:33.024Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-25?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).