FreshBrew: A Benchmark for Evaluating AI Agents on Java Code Migration
cs.SE, cs.AI
Submitted: 2025-10-06
Updated: 2026-10-03
Comments: 18 pages, 12 figures
Journal ref: ICSE '26: Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering
Code: https://github.com/mrcabbage972/freshbrew
License: http://creativecommons.org/licenses/by/4.0/
The gist: AI coding assistants are rapidly becoming integral to modern software development.
Terminology
Abstract
AI coding assistants are rapidly becoming integral to modern software development. A key challenge in this space is the continual need to migrate and modernize codebases in response to evolving software ecosystems. Traditionally, such migrations have relied on rule-based systems and human intervention. With the advent of powerful large language models (LLMs), AI-driven agentic frameworks offer a promising alternative-but their effectiveness has not been systematically evaluated. In this paper, we introduce, a novel benchmark for evaluating AI agents on project-level Java migrations, with a specific focus on measuring an agent's ability to preserve program semantics and avoid reward hacking, which we argue requires projects with high test coverage for a rigorous and reliable evaluation. We benchmark several state-of-the-art LLMs, and compare their performance against established rule-based tools. Our evaluation on a challenging subset of 228 public Maven repositories that build on JDK 8, fail on JDK 17, and have high test coverage shows that the top-performing model, Gemini 2.5 Flash, can successfully migrate 52.3% of projects to JDK 17. Our empirical analysis reveals novel insights into the critical strengths and limitations of current agentic approaches, offering actionable insights into their real-world applicability. Our empirical study reveals failure modes of current AI agents in realistic Java modernization tasks, providing a foundation for evaluating trustworthy code-migration systems. By releasing, we aim to facilitate rigorous, reproducible evaluation and catalyze progress in AI-driven codebase modernization.
Sources
- OpenHands: An Open Platform for AI Software Developers as Generalist Agents
- MigrationBench: Repository-Level Code Migration Benchmark from Java 8
- Towards an Understanding of Large Language Models in Software Engineering Tasks
- Large Language Models for Software Engineering: A Systematic Literature Review
- LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead
- CodePlan: Repository-level Coding using LLMs and Planning
- Executable Code Actions Elicit Better LLM Agents
- Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents
- Evaluating Large Language Models Trained on Code
- Program Synthesis with Large Language Models
- CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generation
- EvoCodeBench: An Evolving Code Generation Benchmark Aligned with Real-World Code Repositories
- DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
- MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generation
- Unraveling the Potential of Large Language Models in Code Translation: How Far Are We?
- RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generation
- A Survey on LLM-as-a-Judge
- Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
- Qwen3 Technical Report
- GPT-4o System Card
Related papers
- Falsification-Based Verification of LLM-Generated Optimization Models: Sound Test Batteries and Their Detection Limits
- GitSkills: A Dataset of Agent Skills on GitHub
- SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces
- PackMonitor: Enabling Zero Package Hallucinations Through Decoding-Time Monitoring
- IntentCoding: Amplifying User Intent in Code Generation
- Incentives and Outcomes in Bug Bounties