eclipse3.0.1 中如何打开assert?
eclipse3.0.1 中如何打开assert?
目前的项目用到了assert,但是:
assert status;
报错:assert cannot be resolved or is not a type EventManager.java line 345 2005/06/16 14:08:23
在网上找了个资料,
1、选择菜单“Window”,“Preferences”,在对话框中找到“Java”,“Compiler”,“Compliance and Classfiles”,将编译选项改成1.4,就可以使用JDK1.4版的assert(断言)语法。
我试了,还是不行
2、在编译选项中加入-source 1.4 也不行
请高手指教