Topic: Design by Contract 中的Assertion如何在Java中体现? |
Print this page |
1.Design by Contract 中的Assertion如何在Java中体现? | Copy to clipboard |
Posted by: njluz Posted on: 2005-07-17 13:15 断言是Design by Contract中的核心技术,我在UML Distilled中看到关于断言部分如下描述: “Typically, assertions are checked only during debug and are not checked during production execution” 感觉上断言只是用在debug中,但是看到其他说明感觉对于断言跟java中Exception的处理类似。 我的问题是断言在开发中的作用到底是什么,是用来开发阶段的检核测试还是在运行阶段的错误纠正,断言在设计中的作用,有没有用过的人可以介绍介绍。 |
2.Re:Design by Contract 中的Assertion如何在Java中体现? [Re: njluz] | Copy to clipboard |
Posted by: njluz Posted on: 2005-07-18 13:13 hello ,anyone here? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |