changeset 450:8f63365a2586

6728076: Test case for 6536211 is failing on all platforms Summary: exception needed to be caught and logged Reviewed-by: chegar
author michaelm
date Wed, 23 Jul 2008 12:05:19 +0100
parents 3b8e5bfe2be7
children 701eaee7ebed
files src/share/classes/sun/net/httpserver/ServerImpl.java
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/httpserver/ServerImpl.java	Sat Jul 19 10:27:34 2008 +0100
+++ b/src/share/classes/sun/net/httpserver/ServerImpl.java	Wed Jul 23 12:05:19 2008 +0100
@@ -349,10 +349,8 @@
                             }
                         }
                     }
-                } catch (CancelledKeyException  e) {
+                } catch (Exception e) {
                     logger.log (Level.FINER, "Dispatcher (3)", e);
-                } catch (IOException e) {
-                    logger.log (Level.FINER, "Dispatcher (4)", e);
                 }
             }
         }
@@ -364,10 +362,10 @@
                 Exchange t = new Exchange (chan, protocol, conn);
                 executor.execute (t);
             } catch (HttpError e1) {
-                logger.log (Level.FINER, "Dispatcher (5)", e1);
+                logger.log (Level.FINER, "Dispatcher (4)", e1);
                 conn.close();
             } catch (IOException e) {
-                logger.log (Level.FINER, "Dispatcher (6)", e);
+                logger.log (Level.FINER, "Dispatcher (5)", e);
                 conn.close();
             }
         }