From: fhanik Date: Tue, 1 Mar 2011 18:24:03 +0000 (+0000) Subject: propagate all exceptions through IOExceptions X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6c1738bf2045ed514657225a53311c5bf5bd160b;p=tomcat7.0 propagate all exceptions through IOExceptions git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1075964 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/SecureNioChannel.java b/java/org/apache/tomcat/util/net/SecureNioChannel.java index e7f26e93b..c3a9eac7d 100644 --- a/java/org/apache/tomcat/util/net/SecureNioChannel.java +++ b/java/org/apache/tomcat/util/net/SecureNioChannel.java @@ -253,11 +253,15 @@ public class SecureNioChannel extends NioChannel { } } } + } catch (IOException x) { + throw x; + } catch (Exception cx) { + IOException x = new IOException(cx); + throw x; } finally { if (key!=null) try {key.cancel();} catch (Exception ignore) {} if (selector!=null) try {selector.close();} catch (Exception ignore) {} } - }