请教一下, fail不是一个方法吗?为什么需要new?
/**
* Fails a test with the given message.
*
* @param message the identifying message for the {@link AssertionError} (<code>null</code>
* okay)
* @see AssertionError
*/
static public void fail(String message) {
if (message == null) {
throw new fail();
}
throw new fail(message);
}
/**
* Fails a test with no message.
*/
static public void fail() {
fail(null);
}
我就想知道,有没有个异常类叫fail......
代码不一样啊,我从github上下的4.12的源码
