ASAP-Repair: API-Specific Automated Program Repair Based on API Usage Graphs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Nielebock, Sebastian, Blockhaus, Paul, Krüger, Jacob, Ortmeier, Frank
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914674943983616
author Nielebock, Sebastian
Blockhaus, Paul
Krüger, Jacob
Ortmeier, Frank
author_facet Nielebock, Sebastian
Blockhaus, Paul
Krüger, Jacob
Ortmeier, Frank
contents Modern software development relies on the reuse of code via Application Programming Interfaces (APIs). Such reuse relieves developers from learning and developing established algorithms and data structures anew, enabling them to focus on their problem at hand. However, there is also the risk of misusing an API due to a lack of understanding or proper documentation. While many techniques target API misuse detection, only limited efforts have been put into automatically repairing API misuses. In this paper, we present our advances on our technique API-Specific Automated Program Repair (ASAP-Repair). ASAP-Repair is intended to fix API misuses based on API Usage Graphs (AUGs) by leveraging API usage templates of state-of-the-art API misuse detectors. We demonstrate that ASAP-Repair is in principle applicable on an established API misuse dataset. Moreover, we discuss next steps and challenges to evolve ASAP-Repair towards a full-fledged Automatic Program Repair (APR) technique.
format Preprint
id arxiv_https___arxiv_org_abs_2402_07542
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle ASAP-Repair: API-Specific Automated Program Repair Based on API Usage Graphs
Nielebock, Sebastian
Blockhaus, Paul
Krüger, Jacob
Ortmeier, Frank
Software Engineering
Modern software development relies on the reuse of code via Application Programming Interfaces (APIs). Such reuse relieves developers from learning and developing established algorithms and data structures anew, enabling them to focus on their problem at hand. However, there is also the risk of misusing an API due to a lack of understanding or proper documentation. While many techniques target API misuse detection, only limited efforts have been put into automatically repairing API misuses. In this paper, we present our advances on our technique API-Specific Automated Program Repair (ASAP-Repair). ASAP-Repair is intended to fix API misuses based on API Usage Graphs (AUGs) by leveraging API usage templates of state-of-the-art API misuse detectors. We demonstrate that ASAP-Repair is in principle applicable on an established API misuse dataset. Moreover, we discuss next steps and challenges to evolve ASAP-Repair towards a full-fledged Automatic Program Repair (APR) technique.
title ASAP-Repair: API-Specific Automated Program Repair Based on API Usage Graphs
topic Software Engineering
url https://arxiv.org/abs/2402.07542