首页> 外文期刊>Science of Computer Programming >Detecting broken pointcuts using structural commonality and degree of interest
【24h】

Detecting broken pointcuts using structural commonality and degree of interest

机译:使用结构通用性和兴趣度检测断点

获取原文
获取原文并翻译 | 示例

摘要

Pointcut fragility is a well-documented problem in Aspect-Oriented Programming; changes to the base-code can lead to join points incorrectly falling in or out of the scope of pointcuts. Deciding which pointcuts have broken due to base-code changes is a daunting venture, especially in large and complex systems. We present an automated approach that recommends pointcuts that are likely to require modification due to a particular base-code change, as well as ones that do not. Our hypothesis is that join points selected by a pointcut exhibit common structural characteristics. Patterns describing such commonality are used to recommend pointcuts that have potentially broken with a degree of confidence as the developer is typing. The approach is implemented as an extension to the popular Mylyn Eclipse IDE plug-in, which maintains focused contexts of entities relevant to the task at hand using a Degree of Interest (DOI) model. We show that it is accurate in revealing broken pointcuts by applying it to multiple versions of several open source projects and evaluating the quality of the recommendations produced against actual modifications. We found that our tool made broken pointcuts 2.14 times more interesting in the DOI model than unbroken ones, with a p-value under 0.1, indicating a significant difference in final DOI value between the two kinds of pointcuts (i.e., broken and unbroken).
机译:切入点易碎性在面向方面的编程中是一个有据可查的问题。对基本代码的更改可能导致连接点错误地落入切入点范围之内或之外。确定哪些切入点由于基本代码更改而中断,这是一项艰巨的任务,尤其是在大型和复杂的系统中。我们提出了一种自动化的方法,该方法推荐因特定的基本代码更改而可能需要修改的切入点,以及不需要切入点的切入点。我们的假设是,切入点选择的连接点具有共同的结构特征。描述这种共通性的模式用于推荐切入点,这些切入点在开发人员键入内容时可能会以一定的置信度破坏。该方法是对流行的Mylyn Eclipse IDE插件的扩展,该插件使用兴趣度(DOI)模型维护与当前任务相关的实体的聚焦上下文。通过将其应用于多个开源项目的多个版本并评估针对实际修改产生的建议的质量,我们证明了它是揭示残破切入点的准确方法。我们发现,在DOI模型中,我们的工具使残破的切入点比未破损的切入点更有趣2.14倍,p值小于0.1,表明两种切入点(即残破和未破损)之间的最终DOI值存在显着差异。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号