arXiv:2609.00362cs.SEAug 2026

Manuscript Offprint

arXiv:2609.00362

Revisiting Feedback-Driven LLM Code Repair: A Replication and Exploratory Java Extension

Louis Lalonde, Wassim Keddache, Thomas Perron Touchette, Leuson Da Silva, Foutse Khomh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Louis Lalonde, Wassim Keddache, Thomas Perron Touchette, Leuson Da Silva, and Foutse Khomh

Polytechnique Montréal, Montréal, Canada

{louis.lalonde, wassim.keddache, thomas.perron-touchette, leuson-mario-pedro.da-silva, foutse.khomh}@polymtl.ca

Abstract—Since the advent of Large Language Models (LLMs), practitioners have increasingly leveraged them to support their software engineering tasks, including automated code repair, showing promising results. Yet, concerns regarding reproducibility and generalizability remain largely unexplored. To further evaluate these concerns and associated impacts, we partially reproduce and conduct an exploratory Java extension of the FeedbackEval benchmark [1], which evaluates how LLMs leverage different feedback types for Python code repair. First, we partially replicate the original study on 394 repair tasks using GPT-4o and Claude 3.5 Sonnet, reproducing and observing the main qualitative trends reported in the original work. Second, we conduct an exploratory Java extension by constructing 100 erroneous repair instances from 50 Java tasks and evaluating feedback effectiveness. Our results show that previous conclusions from Python may be sensitive to benchmark construction, feedback representation, and tooling ecosystem, motivating more controlled multilingual benchmarks. Specifically, while test feedback remains the strongest feedback type in our Python replication, the same ranking is not observed in our Java extension, as simple and JUnit-based test feedback do not differ significantly. We hypothesize that differences in feedback informativeness and tooling ecosystems, such as the verbosity of test frameworks, may partly explain such a difference. Finally, lighter prompts reduce cost without significant differences in repair effectiveness. Overall, our findings confirm key trends under a partially controlled replication and highlight the need for more rigorous multilingual evaluation and careful feedback design in LLM-based repair systems.

Index Terms—LLM, Code repair tasks, Feedback Driven Repair, Python, Java

I. INTRODUCTION

During the lifecycle of software projects, bugs and issues are expected to be reported and addressed by developers [2]. Fixing these issues is often time-consuming and can negatively impact developer productivity [3]. To alleviate this burden, researchers have been extensively studying Automated Program Repair (APR), aiming to automatically generate patches for faulty programs [4], [5]. Recent advances in Large Language Models (LLMs), with their ability to understand natural language and generate code, have opened new opportunities for APR. Prior work has leveraged LLMs for tasks such as bug fixing, vulnerability repair, and integration with static analysis tools [6]–[8]. However, LLM-based program repair is inherently an iterative process, where models rely on feedback signals to identify and correct errors [9]. As a result, understanding how different types of feedback influence repair effectiveness has become a key research question.

Specifically for code repair tasks, previous studies have investigated how different feedback types can improve LLM performance [10]. In this context, the FeedbackEval benchmark [1] demonstrated that, in Python, repair performance varies depending on the feedback type, including unit test execution, static analysis, human feedback, and simple prompts, with test-based feedback achieving the highest CoderEval result for GPT-4o (37.8% Repair@1). However, whether these findings apply to other programming languages remains an open question [11].

Programming languages differ fundamentally in their type systems, execution models, and error reporting mechanisms [12]. For instance, statically typed languages such as Java enforce type checking at compilation time and produce structured, location-aware diagnostics before execution, while dynamically typed languages, such as Python, detect many errors only at runtime, often resulting in less precise and less actionable feedback [13], [14]. Moreover, Java is supported by a mature ecosystem of tools, like Java and JUnit, which directly shape how feedback is generated and presented to developers. These differences may directly influence how LLMs interpret and utilize feedback during repair tasks. Prior work has also shown that LLMs exhibit varying proficiency across programming languages [15], [16], raising the question of whether feedback-driven repair strategies are efficient across languages with different characteristics. In addition, practical deployment of LLM-based repair systems requires considering not only effectiveness but also cost-efficiency [17]. While advanced prompting strategies such as Chain-of-Thought [18] and Few-shot [19] learning have been widely explored, their performance-to-cost trade-offs remain unclear in the context of feedback-driven repair across programming languages [20], [21].

To address these open questions, we first partly replicate the study by Dai et al. [1] to assess the reproducibility of its findings in our experimental setup. We reproduce their evaluation on the CoderEval [22] and HumanEval [23] benchmarks, considering the initial set of evaluated feedback types (test execution, static analysis, human feedback, and simple prompts) and measuring repair performance using Repair@1. Second, we conduct an exploratory extension of FeedbackEval [1] to Java. Specifically, we investigate two research questions: (RQ1) how feedback-effectiveness patterns observed in Python behave under a Java repair setting with different typing, compilation, and testing characteristics; and

(RQ2) how cost-efficient different prompting strategies are for feedback-driven Java code repair. For that, we construct a Java dataset of 100 faulty program instances based on 50 CoderEval tasks by injecting both compiler and logical mutations into correct programs. We then evaluate LLM-based repair using feedback categories inspired by the original study and evaluate repairs with GPT-4o-mini. This design allows us to examine whether the qualitative trends observed in Python are reproduced in our Java extension. Finally, we analyze the cost-efficiency of prompting strategies by evaluating multiple prompting variants, including Chain-of-Thought and Few-shot prompting, and measuring repair performance relative to API cost.

Our replication reproduces some qualitative FeedbackEval trends, with test-based feedback achieving the highest repair performance in Python. Meanwhile, we observe different results in our exploratory Java extension. For logical tasks, simple feedback achieves the highest observed Repair@1, but does not differ significantly from test feedback. For compiler tasks, compiler feedback performs best, but does not differ significantly from simple feedback. Finally, lightweight prompting offers more favorable observed cost-effectiveness trade-offs, while Chain-of-Thought increases cost without statistically supported gains.

Overall, our findings offer implications for researchers and practitioners. First, they suggest that conclusions drawn from LLM-based repair studies in a single programming language may be sensitive to its surrounding benchmark, tooling, and feedback-generation setup, highlighting the need for more controlled multilingual evaluation. Second, our exploratory Java extension results emphasize the role of tooling and feedback quality in shaping LLM behavior, as differences may influence observed repair effectiveness. Finally, from a cost-efficiency perspective, our results indicate that increasing prompt complexity does not necessarily improve performance, underscoring the importance of cost-aware design for scalable LLM-based repair systems.

References (44)