提交 cd762851 编写于 作者: D dmocek

7187876: ClassCastException in TCPTransport.executeAcceptLoop

Reviewed-by: dholmes, smarks
上级 acb6dfb7
...@@ -28,6 +28,7 @@ import java.lang.ref.Reference; ...@@ -28,6 +28,7 @@ import java.lang.ref.Reference;
import java.lang.ref.SoftReference; import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.UndeclaredThrowableException;
import java.io.DataInputStream; import java.io.DataInputStream;
import java.io.DataOutputStream; import java.io.DataOutputStream;
import java.io.IOException; import java.io.IOException;
...@@ -462,8 +463,10 @@ public class TCPTransport extends Transport { ...@@ -462,8 +463,10 @@ public class TCPTransport extends Transport {
return; return;
} }
// continue loop // continue loop
} else { } else if (t instanceof Error) {
throw (Error) t; throw (Error) t;
} else {
throw new UndeclaredThrowableException(t);
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册