Proceedings of the ACM on Programming Languages · 2020 · 29 citations · 15 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSystems ProgrammingApplication Programming InterfacesSoftware MaintenanceStatic Code AnalysisAccess PointsApi Call AnalysisJavascriptPattern Matching
JavaScript libraries are widely used and evolve rapidly. When adapting client code to non-backwards compatible changes in libraries, a major challenge is how to locate affected API uses in client code, which is currently a difficult manual task. In this paper we address this challenge by introducing a simple pattern language for expressing API access points and a pattern-matching tool based on lightweight static analysis. Experimental evaluation on 15 popular npm packages shows that typical breaking changes are easy to express as patterns. Running the static analysis on 265 clients of these packages shows that it is accurate and efficient: it reveals usages of breaking APIs with only 14% false positives and no false negatives, and takes less than a second per client on average. In addition, the analysis is able to report its confidence, which makes it easier to identify the false positives. These results suggest that the approach, despite its simplicity, can reduce the manual effort of the client developers.
15
Documenting and automating collateral evolutions in linux device drivers
Yoann Padioleau, Julia Lawall, René Rydhof Hansen et al. · 2008 · 192 citations
Erik Derr, Sven Bugiel, Sascha Fahl et al. · 2017 · 163 citations
A graph-based approach to API usage adaptation
Hoan Anh Nguyen, Tung Nguyen, Gary Wilson et al. · 2010 · 158 citations
CiD: automating the detection of API-related compatibility issues in Android apps
Li Li, Tegawendé F. Bissyandé, Haoyu Wang et al. · 2018 · 146 citations · Full text