On the Use of Information Retrieval to Automate the Detection of Third-Party Java Library Migration at the Method Level
Hussein Alrubaye, Mohamed Wiem Mkaouer, Ali Ouni

TL;DR
This paper presents a novel approach using information retrieval and mining techniques to automate method-level detection of third-party Java library migrations, improving accuracy and discovery rate.
Contribution
It introduces a new mining approach that extracts manual migration instances to generate patterns, combined with lexical similarity, for more accurate method mapping detection.
Findings
Increases mapping accuracy by 12% on average.
Discovered more method mappings than existing methods.
Validated on 57,447 Java projects across 9 library migrations.
Abstract
The migration process between different third-party libraries is hard, complex and error-prone. Typically, during a library migration, developers need to find methods in the new library that are most adequate in replacing the old methods of the retired library. This process is subjective and time-consuming as developers need to fully understand the documentation of both libraries Application Programming Interfaces, and find the right matching between their methods if it exists. In this context, several studies rely on mining existing library migrations to provide developers with by-example approaches for similar scenarios. In this paper, we introduce a novel mining approach that extracts existing instances of library method replacements that are manually performed by developers for a given library migration to automatically generate migration patterns in the method level. Thereafter,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
