Skip to main content
QUICK REVIEW

[Paper Review] ASTOR: Evolutionary Automatic Software Repair for Java

Matías Martínez, Martin Monperrus|arXiv (Cornell University)|Oct 24, 2014
Software Testing and Debugging TechniquesComputer Science11 references6 citations
TL;DR

ASTOR is an open-source, extensible framework for evolutionary automatic software repair in Java, implementing GenProg, a subset of PAR's templates, and a mutation-testing-based approach using genetic programming and test-suite validation. It enables reproducible evaluation and comparison of repair techniques by providing shared fault localization, repair validation, and extensible components under the GPL v2 license.

ABSTRACT

Context: During last years, many automatic software repair approaches have been presented by the software engineering research community. According to the corresponding papers, these approaches are able to repair real defects from open source projects. Problematic: Some previous publications in the automatic repair field do not provide the implementation of theirs approaches. Consequently, it is not possible for the research community to re-execute the original evaluation, to set up new evaluations (for example, to evaluate the performance against new defects) or to compare approaches against each others. Solution: We propose a publicly available automatic software repair tool called Astor. It implements three state-of-the-art automatic software repair approaches in the context of Java programs (including GenProg and a subset of PAR's templates). The source code of Astor is licensed under the GNU General Public Licence (GPL v2).

Motivation & Objective

  • To address the reproducibility crisis in automatic software repair by providing publicly available, open-source implementations of repair techniques.
  • To unify fault localization and repair validation across multiple state-of-the-art repair approaches for consistent evaluation.
  • To enable researchers to compare, extend, and re-evaluate existing repair methods using a common, modular framework.
  • To support extensibility through customizable components such as test case prioritization and code reuse strategies.
  • To provide a reusable, generic framework that decouples repair logic from core evolutionary computation and testing infrastructure.

Proposed method

  • ASTOR uses genetic programming to evolve program variants by applying source code transformations at the Abstract Syntax Tree (AST) level via the Spoon library.
  • It maintains a population of program variants, where each generation applies transformations to parent variants to produce child variants.
  • Fitness is evaluated based on the number of failing test cases; the goal is to achieve zero failing tests, indicating a repaired program.
  • A unified fault localization module computes suspiciousness scores using the Ochiai formula, with weighted random selection of suspicious statements for transformation.
  • Repair validation involves running both failing and previously passing test cases to ensure correctness and regression safety.
  • The framework supports extensibility through pluggable components such as test case prioritization and code reuse strategies (e.g., local vs. global).

Experimental results

Research questions

  • RQ1Can a unified, open-source framework improve reproducibility and comparability in automatic software repair research?
  • RQ2How effective is a shared fault localization technique (Ochiai formula) across diverse repair approaches in the same framework?
  • RQ3To what extent can a common repair validation pipeline ensure correctness and prevent regressions across different repair strategies?
  • RQ4How does the integration of multiple repair techniques (GenProg, PAR templates, mutation-based) in a single framework affect maintainability and extensibility?
  • RQ5Can the framework support customizable repair workflows, such as alternative navigation strategies for suspicious statements?

Key findings

  • ASTOR successfully implements three state-of-the-art repair approaches—GenProg, a subset of PAR’s templates, and a mutation-testing-based method—within a single, reusable framework.
  • The framework uses the Ochiai formula for fault localization and a weighted random strategy for selecting suspicious statements, ensuring consistency across all repair techniques.
  • All repair approaches in ASTOR share the same test-suite-based validation pipeline, which checks both correctness (passing failing tests) and regression safety (passing previously passing tests).
  • The source code is publicly available under the GPL v2 license at https://github.com/SpoonLabs/astor, enabling full reproducibility and community extension.
  • ASTOR’s modular architecture allows for extensibility, such as integrating test case prioritization or custom code reuse strategies, without modifying core repair logic.
  • By unifying fault localization and validation, ASTOR enables fairer comparison and consistent evaluation of different repair techniques on the same benchmark.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.