paperbot · PL 论文追踪

全部论文 待读 收藏

DepWareTrans: Dependency-Aware Incremental Repository Migration across Co-executable Languages

ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026引用 2 inbox
Sivajeet Chand, Alexander Pretschner, Steve Haupt, Derui Zhu, Sushant Kumar Pandey
crossref: 2026-10-11

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Repository-level code translation is critical for modernizing legacy systems, yet existing approaches based on large language models (LLMs) operate at the file level and fail to scale to codebases with complex inter-file dependencies. This limitation is evident in our industrial setting, where we aim to migrate a production repository (STAR) from Java to Kotlin, but file-level approaches produce fragmented results and fail to achieve end-to-end correctness. In this paper, we show that the primary cause of failure at the repository level is dependency inconsistency. Through an empirical study on open-source and industrial systems, we find that most errors arise from unresolved cross-file dependencies that cannot be effectively addressed by iterative feedback alone. We propose a dependency-aware incremental migration framework that elevates the unit of translation from individual files to dependency-consistent batches. Our approach constructs a dependency graph, groups interdependent files, and performs batched translation with iterative compile- and test-driven validation. We evaluate our method on a 51K line of code (LOC) industrial system and multiple repositories across interoperable language pairs (Java–Kotlin, Java–Scala, and C#–F#). On the STAR repository, file-level approaches achieve 38.16% compilation and 9.39% test success, whereas our approach achieves 100% compilation and test success across the evaluated settings, converging within a small number of iterations. These results show that dependency-aware batching improves scalability and reliability in repository-level code translation.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot12624,
  title = {DepWareTrans: Dependency-Aware Incremental Repository Migration across Co-executable Languages},
  author = {Sivajeet Chand and Alexander Pretschner and Steve Haupt and Derui Zhu and Sushant Kumar Pandey},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3834505}
}