Exception-aware Lifecycle Model Construction for Framework APIs
Jiwei YanJinhao HuangHengqin YangJYJun Yan
Jiwei Yan
Jinhao Huang
Hengqin Yang
JYJun Yan
+4
Existing API lifecycle models capture only existence changes (add/remove/deprecate), ignoring semantic changes such as exception behaviour. This paper presents JavaExP, a tool that automatically constructs exception-aware lifecycle models for framework APIs by static bytecode analysis, extracting exception summaries and matching them across versions via a multi-step strategy. On Java projects, JavaExP achieves 98% precision, improving F1 by 60% and speed by 7× over prior work, and identifies 18% more API changes than exception-unaware models. Analysis of 75,433 APIs reveals that 20% have changed their exception-throwing behaviour after introduction, highlighting hidden compatibility risks.

arXiv ·
· January 5, 2024