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 条
  • [41] Multi-Entity Aspect-Based Sentiment Analysis with Context, Entity, Aspect Memory and Dependency Information
    Yang, Jun
    Yang, Runqi
    Lu, Hengyang
    Wang, Chongjun
    Xie, Junyuan
    ACM TRANSACTIONS ON ASIAN AND LOW-RESOURCE LANGUAGE INFORMATION PROCESSING, 2019, 18 (04)
  • [42] Automated Comparative Table Generation for Facilitating Human Intervention in Multi-Entity Resolution
    Huang, Jiacheng
    Hu, Wei
    Li, Haoxuan
    Qu, Yuzhong
    ACM/SIGIR PROCEEDINGS 2018, 2018, : 585 - 594
  • [43] Joint Extraction Model of Multi-entity Relations for Poultry Diagnosis and Treatment Text
    Hu B.
    Tang B.
    Jiang H.
    Huo A.
    Han W.
    Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery, 2021, 52 (06): : 268 - 276
  • [44] The Multi-Entity Decision Graph Decision Ontology: A Decision Ontology for Fusion Support
    Locher, Mark
    Costa, Paulo C. G.
    2017 20TH INTERNATIONAL CONFERENCE ON INFORMATION FUSION (FUSION), 2017, : 1831 - 1838
  • [45] Reasoning with conceptual graphs and evidential networks for multi-entity maritime threat assessment
    Kowalski, Pawel
    Jousselme, Anne-Laure
    2022 25TH INTERNATIONAL CONFERENCE ON INFORMATION FUSION (FUSION 2022), 2022,
  • [47] Data-organization before learning Multi-Entity Bayesian Networks structure
    Bouhamed, H.
    Rebai, A.
    Lecroq, T.
    Jaoua, M.
    World Academy of Science, Engineering and Technology, 2011, 78 : 305 - 308
  • [48] Multi-Entity Bayesian Networks for Knowledge-Driven Analysis of ICH Content
    Chantas, Giannis
    Kitsikidis, Alexandros
    Nikolopoulos, Spiros
    Dimitropoulos, Kosmas
    Douka, Stella
    Kompatsiaris, Ioannis
    Grammalidis, Nikos
    COMPUTER VISION - ECCV 2014 WORKSHOPS, PT II, 2015, 8926 : 355 - 369
  • [49] Service Restoration in Multi-Entity Network- Cloud Ecosystems: How to Cooperate?
    Sahoo, Subhadeep
    Xu, Sugang
    Ferdousi, Sifat
    Hirota, Yusuke
    Tornatore, Massimo
    Awaji, Yoshinari
    Mukherjee, Biswanath
    IEEE COMMUNICATIONS MAGAZINE, 2025, 63 (03) : 129 - 135
  • [50] Game Theoretic Fuzzy Multi-Entity Bayesian Networks for Collision Avoidance in VANETs
    Golestan, Keyvan
    Soua, Ridha
    Karray, Fakhri
    Kamel, Mohamed S.
    2016 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE), 2016, : 508 - 515