--- category: academic type: academic person: Yanxin Lu date: 2010 source: zhong_10_mam.pdf --- # Mining API Mapping for Language Migration Hao Zhong, Suresh Thummalapenta, Tao Xie, Lu Zhang, Qing Wang (Chinese Academy of Sciences, Peking University, NC State) ICSE 2010 To address business requirements, companies often have to release different versions of their projects in different languages. Manually migrating projects (e.g., from Java to C#) is tedious and error-prone. This paper proposes MAM (Mining API Mapping), a novel approach that automatically mines how APIs of one language are mapped to APIs of another using API client code. MAM accepts a set of projects each with two versions in two languages and mines API mapping relations between those two languages based on how APIs are used by the two versions. Results show that the tool mines 25,805 unique mapping relations of APIs between Java and C# with more than 80% accuracy, and the mined relations help reduce 54.4% compilation errors and 43.0% defects during migration with Java2CSharp.