首页> 外文会议>International Conference on Software Analysis, Evolution, and Reengineering >Do Developers Deprecate APIs with Replacement Messages? A Large-Scale Analysis on Java Systems
【24h】

Do Developers Deprecate APIs with Replacement Messages? A Large-Scale Analysis on Java Systems

机译:开发人员是否使用替换消息弃用API? Java系统的大规模分析

获取原文

摘要

As any other software system, frameworks and libraries evolve over time, and so their APIs. Consequently, client systems should be updated to benefit from improved APIs. To facilitate this task and preserve backward compatibility, API elements should always be deprecated with clear replacement messages. However, in practice, there are evidences that API elements are usually deprecated without such messages. In this paper, we study a set of questions regarding the adoption of deprecation messages. Our goal is twofold: to measure the usage of deprecation messages and to investigate whether a tool is needed to recommend such messages. Thus, we verify (i) the frequency of deprecated elements with replacement messages, (ii) the impact of software evolution on such frequency, and (iii) the characteristics of systems which deprecate API elements in a correct way. Our large-scale analysis on 661 real-world Java systems shows that (i) 64% of the API elements are deprecated with replacement messages per system, (ii) there is almost no major effort to improve deprecation messages over time, and (iii) systems that deprecated API elements in a correct way are statistically significantly different from the ones that do not in terms of size and developing community. As a result, we provide the basis for the design of a tool to support client developers on detecting missing deprecation messages.
机译:与其他任何软件系统一样,框架和库也会随着时间的推移而发展,因此它们的API也随之发展。因此,应更新客户端系统以从改进的API中受益。为了简化此任务并保持向后兼容性,应始终使用明确的替换消息来弃用API元素。但是,在实践中,有证据表明,通常在没有此类消息的情况下不推荐使用API​​元素。在本文中,我们研究了有关采用弃用消息的一系列问题。我们的目标是双重的:衡量弃用消息的使用情况,并调查是否需要推荐此类消息的工具。因此,我们验证(i)带有替换消息的不赞成使用的元素的频率,(ii)软件开发对该频率的影响,以及(iii)以正确方式不赞成使用API​​元素的系统的特性。我们对661个实际Java系统进行的大规模分析表明:(i)每个系统都使用替换消息弃用了64%的API元素;(ii)随着时间的推移,几乎没有重大的努力来改进弃用消息;并且(iii )以正确方式弃用API元素的系统,在统计上与未在规模和开发社区方面没有差异的系统有显着差异。因此,我们为工具的设计提供了基础,以支持客户端开发人员检测丢失的弃用消息。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号