Towards generating transformation rules without examples for android API replacement

Deprecation of APIs in software libraries is common when library maintainers make changes to a library and will no longer support certain APIs in the future. When deprecation occurs, developers whose programs depend on the APIs need to replace the usages of the deprecated APIs sooner or later. Often...

Full description

Saved in:
Bibliographic Details
Main Authors: THUNG, Ferdian, KANG, Hong Jin, JIANG, Lingxiao, LO, David
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2019
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/4824
https://ink.library.smu.edu.sg/context/sis_research/article/5827/viewcontent/icsme19porting.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-5827
record_format dspace
spelling sg-smu-ink.sis_research-58272020-04-03T07:23:10Z Towards generating transformation rules without examples for android API replacement THUNG, Ferdian KANG, Hong Jin JIANG, Lingxiao LO, David Deprecation of APIs in software libraries is common when library maintainers make changes to a library and will no longer support certain APIs in the future. When deprecation occurs, developers whose programs depend on the APIs need to replace the usages of the deprecated APIs sooner or later. Often times, software documentation specifies which new APIs the developers should use in place of a deprecated API. However, replacing the usages of a deprecated API remains a challenge since developers may not know exactly how to use the new APIs. The developers would first need to understand the API changes before they can replace the deprecated API correctly. Previous work has proposed an approach to assist developers in deprecated Android API replacement by learning from examples. In this work, we also focus on Android APIs and propose an approach named No Example API Transformation (NEAT) to generate transformation rules that can assist developers in deprecated API replacement even when code examples are not available (e.g., when the deprecation has happened recently). We have validated the effectiveness of NEAT on generating transformation rules for deprecated Android APIs. Using NEAT, we can generate 37 transformation rules for 37 out of a selection of 100 deprecated APIs and have validated these rules to be correct. 2019-10-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/4824 info:doi/10.1109/ICSME.2019.00032 https://ink.library.smu.edu.sg/context/sis_research/article/5827/viewcontent/icsme19porting.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University API deprecation API replacement program transformation Android Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic API deprecation
API replacement
program transformation
Android
Software Engineering
spellingShingle API deprecation
API replacement
program transformation
Android
Software Engineering
THUNG, Ferdian
KANG, Hong Jin
JIANG, Lingxiao
LO, David
Towards generating transformation rules without examples for android API replacement
description Deprecation of APIs in software libraries is common when library maintainers make changes to a library and will no longer support certain APIs in the future. When deprecation occurs, developers whose programs depend on the APIs need to replace the usages of the deprecated APIs sooner or later. Often times, software documentation specifies which new APIs the developers should use in place of a deprecated API. However, replacing the usages of a deprecated API remains a challenge since developers may not know exactly how to use the new APIs. The developers would first need to understand the API changes before they can replace the deprecated API correctly. Previous work has proposed an approach to assist developers in deprecated Android API replacement by learning from examples. In this work, we also focus on Android APIs and propose an approach named No Example API Transformation (NEAT) to generate transformation rules that can assist developers in deprecated API replacement even when code examples are not available (e.g., when the deprecation has happened recently). We have validated the effectiveness of NEAT on generating transformation rules for deprecated Android APIs. Using NEAT, we can generate 37 transformation rules for 37 out of a selection of 100 deprecated APIs and have validated these rules to be correct.
format text
author THUNG, Ferdian
KANG, Hong Jin
JIANG, Lingxiao
LO, David
author_facet THUNG, Ferdian
KANG, Hong Jin
JIANG, Lingxiao
LO, David
author_sort THUNG, Ferdian
title Towards generating transformation rules without examples for android API replacement
title_short Towards generating transformation rules without examples for android API replacement
title_full Towards generating transformation rules without examples for android API replacement
title_fullStr Towards generating transformation rules without examples for android API replacement
title_full_unstemmed Towards generating transformation rules without examples for android API replacement
title_sort towards generating transformation rules without examples for android api replacement
publisher Institutional Knowledge at Singapore Management University
publishDate 2019
url https://ink.library.smu.edu.sg/sis_research/4824
https://ink.library.smu.edu.sg/context/sis_research/article/5827/viewcontent/icsme19porting.pdf
_version_ 1770575055360622592