首页> 外文期刊>Science of Computer Programming >A fully abstract trace-based semantics for reasoning about backward compatibility of class libraries
【24h】

A fully abstract trace-based semantics for reasoning about backward compatibility of class libraries

机译:完全抽象的基于跟踪的语义,用于推理类库的向后兼容性

获取原文
获取原文并翻译 | 示例

摘要

Backward compatibility is the property that an old version of a library can safely be replaced by a new version without breaking existing clients. Formal reasoning about backward compatibility requires an adequate semantic model to compare the behavior of two library implementations. In the object-oriented setting with inheritance and callbacks, such a model must account for the complex interface between library implementations and clients. In this paper, we develop a fully abstract trace-based semantics for class libraries in object-oriented languages, in particular for Java-like sealed packages. Our approach enhances a standard operational semantics such that the change of control between the library and the client context is made explicit in terms of interaction labels. By using traces over these labels, we abstract from the data representation in the heap, support class hiding, and provide fully abstract package denotations. Soundness and completeness of the trace semantics is proven using specialized simulation relations on the enhanced operational semantics. The simulation relations also provide a proof method for reasoning about backward compatibility.
机译:向后兼容性是可以将旧版本库安全地替换为新版本而不会破坏现有客户端的特性。关于向后兼容性的形式推理需要一个适当的语义模型来比较两个库实现的行为。在具有继承和回调的面向对象的设置中,这样的模型必须解决库实现和客户端之间的复杂接口。在本文中,我们为面向对象的语言中的类库,特别是针对类似Java的密封包,开发了一种完全基于跟踪的语义。我们的方法增强了标准的操作语义,从而使库和客户端上下文之间的控件更改在交互标签方面变得明确。通过在这些标签上使用跟踪,我们可以从堆中的数据表示形式中抽象出来,支持类隐藏,并提供完全抽象的包表示形式。使用增强的操作语义上的专门模拟关系证明了跟踪语义的健全性和完整性。仿真关系还提供了用于证明向后兼容性的证明方法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号