Automatic Android Deprecated-API Usage Update by Learning from Single Updated Example
Due to the deprecation of APIs in the Android operating system, developers have to update usages of the APIs to ensure that their applications work for both the past and current versions of Android. Such updates may be widespread, non-trivial, and time-consuming. Therefore, automation of such updates will be of great benefit to developers. AppEvolve, which is the state-of-the-art tool for automating such updates, relies on having before- and after-update examples to learn from. In this work, we propose an approach named CocciEvolve that performs such updates using only a single after-update example. CocciEvolve learns edits by extracting the relevant update to a block of code from an after-update example. From preliminary experiments, we find that CocciEvolve can successfully perform 96 out of 112 updates, with a success rate of 85%.
Tue 14 JulDisplayed time zone: (UTC) Coordinated Universal Time change
00:00 - 01:00 | Session 3: FaultsERA / Research at ICPC Chair(s): Mohamed Wiem Mkaouer Rochester Institute of Technology | ||
00:00 12mPaper | Exploiting Code Knowledge Graph for Bug Localization via Bi-directional Attention Research Jinglei Zhang Peking University, Rui Xie Peking University, Wei Ye Peking University, Yuhan Zhang Peking University, Shikun Zhang Peking University Media Attached | ||
00:12 12mPaper | On Combining IR Methods to Improve Bug Localization Research Saket Khatiwada Louisiana State University, Miroslav Tushev Louisiana State University, Nash Mahmoud Louisiana State University Media Attached | ||
00:24 12mPaper | An Empirical Study on Critical Blocking Bugs Research Hao Ren Department of Computer Science and Technology, Nanjing University, Yanhui Li Department of Computer Science and Technology, Nanjing University, Lin Chen Nanjing University Media Attached | ||
00:36 12mPaper | Improving the Accuracy of Spectrum-based Fault Localization for Automated Program Repair ERA Tetsushi Kuma Osaka University, Yoshiki Higo Osaka University, Shinsuke Matsumoto Osaka University, Shinji Kusumoto Osaka University Media Attached | ||
00:48 12mPaper | Automatic Android Deprecated-API Usage Update by Learning from Single Updated Example ERA Stefanus Agus Haryono Singapore Management University, Ferdian Thung Singapore Management University, Hong Jin Kang School of Information Systems, Singapore Management University, Lucas Serrano Sorbonne University/Inria/LIP6, Gilles Muller Inria, Julia Lawall Inria, David Lo Singapore Management University, Lingxiao Jiang Singapore Management University Media Attached |