amazon-science/JavaMigration
Python
Captured source
source ↗amazon-science/JavaMigration
Language: Python
License: Apache-2.0
Stars: 8
Forks: 0
Open issues: 7
Created: 2025-05-01T22:20:35Z
Pushed: 2026-04-26T00:51:21Z
Default branch: main
Fork: no
Archived: no
README:
☕ JavaMigration
🚀 Repository for automated Java code migration research, part of the MigrationBench project.
📦 Packages
This repository contains two sub-packages to conduct Java code migration with LLMs:
1. 🤖 [JavaMigrationAgent](./java_migration_agent)
[JavaMigrationAgent](./java_migration_agent) is an LLM-based agent to automate Java 8 to Java 17 (21) migration, built on top of the Strands Agents framework.
- It supports multiple migration strategies including baseline, PE (prompt engineering), RAG, and a hybrid approach (More cost effective).
2. 🔧 [SDFeedback](./self_debug)
[SDFeedback](./self_debug) runs code migration implementation with LLMs by providing self debugging feedback, motivated by the Teaching Large Language Models to Self-Debug paper.
- It includes both single-job and batch processing capabilities with AWS EMRS support.
📊 Data
Agent trajectories and execution results are stored in the data/ folder.
🔗 Resources
1. 🤗 MigrationBench (Hugging Face) 1. 💻 MigrationBench (GitHub) 1. 📄 arXiv Paper
📚 Citation
@misc{liu2025migrationbenchrepositorylevelcodemigration,
title={MigrationBench: Repository-Level Code Migration Benchmark from Java 8},
author={Linbo Liu and Xinle Liu and Qiang Zhou and Lin Chen and Yihan Liu and Hoan Nguyen and Behrooz Omidvar-Tehrani and Xi Shen and Jun Huan and Omer Tripp and Anoop Deoras},
year={2025},
eprint={2505.09569},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2505.09569},
}Notability
notability 2.0/10Routine repo with low stars