ReBA: refactoring-aware binary adaptation of evolving libraries

  • Authors:
  • Danny Dig;Stas Negara;Vibhu Mohindra;Ralph Johnson

  • Affiliations:
  • University of Illinois, Urbana-Champaign, IL, USA;University of Illinois, Urbana-Champaign, IL, USA;ACL Wireless Limited, Delhi, India;University of Illinois, Urbana-Champaign, IL, USA

  • Venue:
  • Proceedings of the 30th international conference on Software engineering
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Although in theory the APIs of software libraries and frameworks should be stable, they change in practice. This forces clients of the library API to change as well, making software maintenance expensive. Changing a client might not even be an option if its source code is missing or certain policies forbid its change. By giving a library both the old and the new API, clients can be shielded from API changes and can run with the new version of the library. This paper presents our solution and a tool, ReBA, that automatically generates compatibility layers between new library APIs and old clients. In the first stage, ReBA generates another version of the library, called adapted-library, that supports both the old and the new APIs. In the second stage, ReBA shrinks the adapted-library into a minimal, client-specific compatibility layer containing only classes truly required by the client. Evaluations on controlled experiments and case studies using Eclipse core libraries shows that our approach effectively adapts clients to new library versions, and is efficient.