【24h】

PLURAL: Checking Protocol Compliance under Aliasing

机译:PLURAL:在别名下检查协议符合性

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

摘要

Enforcing compliance to API usage protocols is notoriously haxd due to possible aliasing of objects through multiple references. In previous work we proposed a sound, modular approach to checking protocol compliance based on types-tates that offers a great deal of flexibility in aliasing [1]. In our approach, API protocols are defined based on typestates. Every reference is associated with a permission, and reasoning about permissions is appropriately conservative for the "degree" of possible aliasing admitted by a permission.rnThis paper describes Plural, a tool to automatically enforce typestate-based protocols using permissions in Java. API developers can specify protocols with simple annotations on methods and method parameters. A static flow analysis tracks permissions in code that uses specified APIs and issues warnings for possible protocol violations.
机译:众所周知,由于可能会通过多个引用对对象进行别名,因此难以遵守API使用协议。在先前的工作中,我们提出了一种可靠的,基于类型的协议来检查协议遵从性的模块化方法,该方法为别名提供了很大的灵活性[1]。在我们的方法中,API协议是基于类型状态定义的。每个引用都与一个权限相关联,并且对于权限的推理对于权限所允许的可能别名的“程度”是相对保守的。本文描述了Plural,它是一种使用Java中的权限自动强制基于类型状态的协议的工具。 API开发人员可以使用简单的方法和方法参数注释来指定协议。静态流分析跟踪使用指定API的代码中的权限,并针对可能的协议违规发出警告。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号