To react, or not to react: Patterns of reaction to API deprecation

被引:18
作者
Sawant, Anand Ashok [1 ]
Robbes, Romain [2 ]
Bacchelli, Alberto [3 ]
机构
[1] Delft Univ Technol, Software Engn Res Grp, Delft, Netherlands
[2] Free Univ Bozen Bolz, Software & Syst Engn Res Grp, Bozen Bolzano, Italy
[3] Univ Zurich, Dept Informat, Zurich, Switzerland
关键词
Deprecation; Application programming interface; API usage; !text type='Java']Java[!/text; SOCIAL DESIRABILITY; SUPPORT; BIAS;
D O I
10.1007/s10664-019-09713-w
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Application Programming Interfaces (API) provide reusable functionality to aid developers in the development process. The features provided by these APIs might change over time as the API evolves. To allow API consumers to peacefully transition from older obsolete features to new features, API producers make use of the deprecation mechanism that allows them to indicate to the consumer that a feature should no longer be used. The Java language designers noticed that no one was taking these deprecation warnings seriously and continued using outdated features. Due to this, they decided to change the implementation of this feature in Java 9. We question as to what extent this issue exists and whether the Java language designers have a case. We start by identifying the various ways in which an API consumer can react to deprecation. Following this we benchmark the frequency of the reaction patterns by creating a dataset consisting of data mined from 50 API consumers totalling 297,254 GitHub based projects and 1,322,612,567 type-checked method invocations. We see that predominantly consumers do not react to deprecation and we try to explain this behavior by surveying API consumers and by analyzing if the API's deprecation policy has an impact on the consumers' decision to react.
引用
收藏
页码:3824 / 3870
页数:47
相关论文
共 62 条
  • [1] [Anonymous], 2010, FORUM QUALITATIVE SO
  • [2] [Anonymous], 2012, P 20 ACM SIGSOFT S F
  • [3] [Anonymous], P ACM SIGSOFT 20 INT
  • [4] Bajracharya S., 2006, COMP 21 ACM SIGPLAN, P681, DOI DOI 10.1145/1176617.1176671
  • [5] How the Apache community upgrades dependencies: an evolutionary study
    Bavota, Gabriele
    Canfora, Gerardo
    Di Penta, Massimiliano
    Oliveto, Rocco
    Panichella, Sebastiano
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2015, 20 (05) : 1275 - 1317
  • [6] The Impact of API Change- and Fault-Proneness on the User Ratings of Android Apps
    Bavota, Gabriele
    Linares-Vasquez, Mario
    Bernal-Cardenas, Carlos Eduardo
    Di Penta, Massimiliano
    Oliveto, Rocco
    Poshyvanyk, Denys
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (04) : 384 - 407
  • [7] Bholowalia P., 2014, INT J COMPUT APPL, V105, DOI DOI 10.5120/18405-9674
  • [8] How to Break an API: Cost Negotiation and Community Values in Three Software Ecosystems
    Bogart, Christopher
    Kastner, Christian
    Herbsleb, James
    Thung, Ferdian
    [J]. FSE'16: PROCEEDINGS OF THE 2016 24TH ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2016, : 109 - 120
  • [9] Brito G, 2016, 23 IEEE INT C SOFTW
  • [10] On the use of replacement messages in API deprecation: An empirical study
    Brito, Gleison
    Hora, Andre
    Valente, Marco Tulio
    Robbes, Romain
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2018, 137 : 306 - 321