arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.06754cs.SE
收藏

ScarfBench:企业Java应用跨框架应用迁移的基准测试

ScarfBench: A Benchmark for Cross-Framework Application Migration in Enterprise Java

Rensselaer Polytechnic Institute(伦斯勒理工学院);IBM Software Innovation Labs(IBM软件创新实验室);Columbia University(哥伦比亚大学)

Advait Pavuluri, Bridget McGinn, Ashita Saxena, George Safta, Srikanth Tamilselvam, Raju Pavuluri, Michele Merler, Baishakhi Ray, Rahul Krishna

AI总结:

本文提出ScarfBench,一个用于评估企业Java应用跨框架迁移行为保持性的基准测试,通过专家编写实现三元组,涵盖Spring、Jakarta EE和Quarkus框架,生成102个变体和204个定向重构任务,评估了五种最先进的编码代理,并揭示了不同框架方向和架构层的难度差异。

摘要:

Java仍然是企业软件的核心,许多应用程序超出了其原始架构。跨框架迁移是一种行为保持的重构,涵盖构建配置、依赖注入、持久性、请求处理和部署。现有的软件工程基准测试涵盖了错误修复、功能实现和语言或版本现代化,但留出跨框架重构未被测量。我们介绍了ScarfBench,一个用于行为保持的跨框架重构企业Java应用的基准测试。它基于专家编写实现三元组,涵盖Spring、Jakarta EE和Quarkus:34个应用程序(29个聚焦单层,5个整体)生成102个变体(~151K行,跨越1946个源和测试文件)和204个定向重构任务。每个任务给代理一个工作源应用程序和目标框架;代理必须合成目标实现,保持源行为。正确性通过应用程序特定的可执行 oracle 评估:候选者必须编译、在容器化目标运行时部署,并通过应用程序的可观察接口行为测试。我们评估了五种最先进的编码代理在ScarfBench上的表现。最强的代理在聚焦层迁移中仅达到15.3%的总测试通过率,在整体应用中为12.2%,仅有一个任务产生完全行为等价的目标。难度在不同框架方向和架构层之间是不对称的:Spring<->Quarkus是最容易的配对,而Jakarta目标迁移是最困难的。从LLM作为判断者和专家对失败任务轨迹的裁决中,我们得出了一种涵盖构建、部署和测试阶段的重复失败类别的分类。我们发布了基准测试、工具和代理轨迹在https://scarfbench.info。

英文摘要:

Java remains central to enterprise software, and many applications outlive their original architecture. Migrating them across frameworks is a behavior-preserving refactoring spanning build configuration, dependency injection, persistence, request handling, and deployment. Existing software-engineering benchmarks cover bug fixing, feature implementation, and language or version modernization, but leave cross-framework refactoring largely unmeasured. We introduce ScarfBench, a benchmark for behavior-preserving cross-framework refactoring of enterprise Java applications. It is built from expert-written implementation triples across Spring, Jakarta EE, and Quarkus: 34 applications (29 focused single-layer, 5 whole) yielding 102 variants (~151K lines across 1946 source and test files) and 204 directed refactoring tasks. Each task gives an agent a working source application and a target framework; the agent must synthesize a target implementation preserving the source behavior. Correctness is evaluated by an application-specific executable oracle: the candidate must compile, deploy in a containerized target runtime, and pass behavioral tests over the application's observable interface. We evaluate five state-of-the-art coding agents on ScarfBench. The strongest achieves only 15.3% aggregate test pass on focused-layer migrations and 12.2% on whole applications, and only one of the 204 tasks yields a fully behaviorally equivalent target. Difficulty is asymmetric across framework directions and architectural layers: Spring<->Quarkus is the most tractable pair, and Jakarta-targeted migrations are hardest. From LLM-as-a-judge and expert adjudication of failed-task traces, we derive a taxonomy of recurring failure categories spanning build, deploy, and test stages. We release the benchmark, harness, and agent traces at https://scarfbench.info.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑