• DocumentCode
    3141286
  • Title

    Inferring likely mappings between APIs

  • Author

    Gokhale, Aniruddha ; Ganapathy, V. ; Padmanaban, Yogesh

  • Author_Institution
    Dept. of Comput. Sci., Rutgers Univ., Piscataway, NJ, USA
  • fYear
    2013
  • fDate
    18-26 May 2013
  • Firstpage
    82
  • Lastpage
    91
  • Abstract
    Software developers often need to port applications written for a source platform to a target platform. In doing so, a key task is to replace an application´s use of methods from the source platform API with corresponding methods from the target platform API. However, this task is challenging because developers must manually identify mappings between methods in the source and target APIs, e.g., using API documentation. We develop a novel approach to the problem of inferring mappings between the APIs of a source and target platform. Our approach is tailored to the case where the source and target platform each have independently-developed applications that implement similar functionality. We observe that in building these applications, developers exercised knowledge of the corresponding APIs. We develop a technique to systematically harvest this knowledge and infer likely mappings between the APIs of the source and target platform. The output of our approach is a ranked list of target API methods or method sequences that likely map to each source API method or method sequence. We have implemented this approach in a prototype tool called Rosetta, and have applied it to infer likely mappings between the Java2 Platform Mobile Edition and Android graphics APIs.
  • Keywords
    Java; application program interfaces; software tools; API documentation; API methods; Android graphics APIs; Java2 Platform Mobile Edition; Rosetta; independently-developed applications; mapping inferrence; method sequence; software developers; source platform API; target platform API; Androids; Databases; Games; Humanoid robots; Inference algorithms; Probability distribution; Random variables;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering (ICSE), 2013 35th International Conference on
  • Conference_Location
    San Francisco, CA
  • Print_ISBN
    978-1-4673-3073-2
  • Type

    conf

  • DOI
    10.1109/ICSE.2013.6606554
  • Filename
    6606554