DepMiner: Automatic Recommendation of Transformation Rules for Method Deprecation - Archive ouverte HAL Access content directly
Conference Papers Year :

DepMiner: Automatic Recommendation of Transformation Rules for Method Deprecation

Abstract

Software applications often depend on external libraries and must be updated when one of those libraries releases a new version. To make this process easier, library developers try to reduce the negative effect of breaking changes by deprecating the API elements before removing them and suggesting replacements to the clients. Modern programming languages and IDEs provide powerful tools for deprecations that can reference the replacement or incorporate the rules written by library developers and use them to automatically update the client code. However, in practice library developers often miss the deprecation opportunities and fail to document the deprecations. In this work, we propose to help library developers support their clients with better deprecations. We rely on the transforming deprecations offered by Pharo and use data mining to detect the missing deprecation opportunities and generate the transformation rules. We implemented our approach for Pharo in a prototype tool called DepMiner. We have applied our tool to five open-source projects and proposed the generated deprecations to core developers of those projects. 63 recommended deprecations were accepted as pull requests.
Fichier principal
Vignette du fichier
main.pdf (481.95 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-03647706 , version 1 (20-04-2022)

Identifiers

  • HAL Id : hal-03647706 , version 1

Cite

Oleksandr Zaitsev, Stéphane Ducasse, Nicolas Anquetil, Arnaud Thiefaine. DepMiner: Automatic Recommendation of Transformation Rules for Method Deprecation. ICSR 2022 - 20th International Conference on Software and System Reuse, Jun 2022, Montpellier, France. ⟨hal-03647706⟩
81 View
48 Download

Share

Gmail Facebook Twitter LinkedIn More