提交 c0273aa2 编写于 作者: I igerasim

8170278: ticket renewal won't happen with debugging turned on

Reviewed-by: coffeys, weijun
上级 cd3bc324
......@@ -634,8 +634,9 @@ public class KerberosTicket implements Destroyable, Refreshable,
}
public String toString() {
if (destroyed)
throw new IllegalStateException("This ticket is no longer valid");
if (destroyed) {
return "Destroyed KerberosTicket";
}
StringBuffer caddrBuf = new StringBuffer();
if (clientAddresses != null) {
for (int i = 0; i < clientAddresses.length; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册