7187876: ClassCastException in TCPTransport.executeAcceptLoop

Reviewed-by: dholmes, smarks
This commit is contained in:
Darryl Mocek 2012-08-02 18:12:18 -07:00
parent 7a13d26b0c
commit f001b9eb53

View File

@ -28,6 +28,7 @@ import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.UndeclaredThrowableException;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
@ -462,8 +463,10 @@ public class TCPTransport extends Transport {
return;
}
// continue loop
} else {
} else if (t instanceof Error) {
throw (Error) t;
} else {
throw new UndeclaredThrowableException(t);
}
}
}