首页> 外文会议>11th international workshop on formal techniques for Java-like programs 2009 >On the interplay between the semantics of Java's finally clauses and the JML run-time checker
【24h】

On the interplay between the semantics of Java's finally clauses and the JML run-time checker

机译:关于Java的finally子句的语义与JML运行时检查器之间的相互作用

获取原文

摘要

This paper discusses how a subtle interaction between the semantics of Java and the implementation of the JML runtime checker can cause the latter to fail to report errors. This problem is due to the well-known capability of finally clauses to implicitly override exceptions. We give some simple examples of annotation violations that are not reported by the run-time checker because the errors are caught within the program text; even without any explicit reference to them. We explain this behaviour, based on the official Java Language Specification. We also discuss what are the consequences of this problem, and we sketch different solutions to the problem (by adapting the implementation of the JML run-time checker, or by adopting a slightly different semantics for Java).
机译:本文讨论了Java语义和JML运行时检查器的实现之间的微妙交互如何导致后者无法报告错误。此问题是由于finally子句具有众所周知的隐式覆盖异常的功能。我们给出了一些注释违规的简单示例,由于错误被捕获在程序文本中,因此运行时检查程序不会报告这些注释违规。即使没有任何明确的参考。我们根据正式的Java语言规范来解释这种行为。我们还将讨论此问题的后果,并为该问题绘制不同的解决方案(通过调整JML运行时检查器的实现,或为Java采用稍微不同的语义)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号