Automatic method change suggestion to complement multi-entity edits

被引:4
|
作者
Jiang, Zijian [1 ]
Wang, Ye [1 ]
Zhong, Hao [2 ]
Meng, Na [1 ]
机构
[1] Virginia Polytech Inst & State Univ, Blacksburg, VA 24060 USA
[2] Shanghai Jiao Tong Univ, Shanghai 200240, Peoples R China
基金
中国国家自然科学基金; 国家重点研发计划;
关键词
Multi-entity edit; Common field access; Common method invocation; Change suggestion; SOFTWARE; MAINTENANCE;
D O I
10.1016/j.jss.2019.110441
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When maintaining software, developers sometimes change multiple program entities (i.e., classes, methods, and fields) to fulfill one maintenance task. We call such complex changes multi-entity edits. Consistently and completely applying multi-entity edits can be challenging, because (1) the changes scatter in different entities and (2) the incorrectly edited code may not trigger any compilation or runtime error. This paper introduces CMSuggester, an approach to suggest complementary changes for multi-entity edits. Given a multi-entity edit that (i) adds a new field or method and (ii) modifies one or more methods to access the field or invoke the method, CMSuggester suggests other methods to co-change for the new field access or method invocation. The design of CMSuggester is motivated by our preliminary study, which reveals that co-changed methods usually access existing fields or invoke existing methods in common. Our evaluation shows that based on common field accesses, CMSuggester recommended method changes in 463 of 685 tasks with 70% suggestion accuracy; based on common method invocations, CMSuggester handled 557 of 692 tasks with 70% accuracy. Compared with prior work ROSE, TARMAQ, and Transitive Association Rules (TAR), CMSuggester recommended more method changes with higher accuracy. Our research can help developers correctly apply multi-entity edits. (C) 2019 Elsevier Inc. All rights reserved.
引用
收藏
页数:12
相关论文
共 50 条
  • [31] MeCo-TSM: Multi-entity Complex Process-oriented Service Modeling Method
    Li, Ying
    Xi, Meng
    Yin, Yuyu
    Luo, Zhiling
    Gao, Honghao
    Yin, Jianwei
    2018 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES (IEEE ICWS 2018), 2018, : 82 - 90
  • [32] Multi-Entity Aspect-Based Sentiment Analysis with Context, Entity and Aspect Memory
    Yang, Jun
    Yang, Runqi
    Wang, Chongjun
    Xie, Junyuan
    THIRTY-SECOND AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTIETH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / EIGHTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2018, : 6029 - 6036
  • [33] Multi-Entity Bayesian Networks Learning For Hybrid Variables In Situation Awareness
    Park, Cheol Young
    Laskey, Kathryn Blackmond
    Costa, Paulo C. G.
    Matsumoto, Shou
    2013 16TH INTERNATIONAL CONFERENCE ON INFORMATION FUSION (FUSION), 2013, : 1894 - 1901
  • [34] MECIM: Multi-entity evolutionary competitive influence maximization in social networks
    Liang, Ziwei
    Liu, Jiancong
    Du, Hongwei
    Zhang, Chen
    EXPERT SYSTEMS WITH APPLICATIONS, 2025, 270
  • [35] Collaborative impact of environmental judiciary on the multi-entity environmental responsibility.
    Li, Xiao-Qing
    Li, Yi
    Liu, Jia-Qi
    Zhongguo Huanjing Kexue/China Environmental Science, 2024, 44 (08): : 4719 - 4730
  • [36] Multi-metric and multi-entity characterization of applications for early system design exploration
    Cai, Lukai
    Gerstlauer, Andreas
    Gajski, Daniel
    ASP-DAC 2005: PROCEEDINGS OF THE ASIA AND SOUTH PACIFIC DESIGN AUTOMATION CONFERENCE, VOLS 1 AND 2, 2005, : 944 - 947
  • [37] Social Relation Analysis from Videos via Multi-entity Reasoning
    Yan, Chenghao
    Liu, Zihe
    Li, Fangtao
    Cao, Chenyu
    Wang, Zheng
    Wu, Bin
    PROCEEDINGS OF THE 2021 INTERNATIONAL CONFERENCE ON MULTIMEDIA RETRIEVAL (ICMR '21), 2021, : 358 - 366
  • [38] Learning and Detecting Coordinated Multi-Entity Activities from Persistent Surveillance
    Levchuk, Georgiy
    Jacobsen, Matt
    Furjanic, Caitlin
    Bobick, Aaron
    SIGNAL PROCESSING, SENSOR FUSION, AND TARGET RECOGNITION XXII, 2013, 8745
  • [39] Speculating the Symbio: Possibilities for Multispecies and Multi-Entity World Making in Childhood
    O'Brien, Shelley
    JOURNAL OF CHILDHOOD STUDIES, 2022, 47 (01):
  • [40] Retrieving Multi-Entity Associations: An Evaluation of Combination Modes for Word Embeddings
    Feher, Gloria
    Spitz, Andreas
    Gertz, Michael
    PROCEEDINGS OF THE 42ND INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL (SIGIR '19), 2019, : 1169 - 1172