【发布时间】:2018-06-02 03:07:50
【问题描述】:
可能是什么原因
assert(false); //this should fail but doesn't
//this gets executed but shouldn't
if(!false) throw new IllegalStateException("what's the bloody point?!!");
抛出 IllegalStateException 而不是 AssertionError?
是的,我在代码中有这两行就是这样。
【问题讨论】:
标签: java debugging exception error-handling exception-handling