提交 d63dc13f 编写于 作者: J jbachorik

8023464: test/closed/sun/tracing/ProviderProxyTest.java failing

Summary: Don't rely on assertions when an Exception suits better
Reviewed-by: alanb, dfuchs, sjiang
上级 e0cb5f61
......@@ -164,7 +164,10 @@ public abstract class ProviderSkeleton implements InvocationHandler, Provider {
declaringClass == Object.class) {
return method.invoke(this, args);
} else {
assert false;
// assert false : "this should never happen"
// reaching here would indicate a breach
// in security in the higher layers
throw new SecurityException();
}
} catch (IllegalAccessException e) {
assert false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册