changeset 49736:7b35d2a59fb3

8199437: Improve diagnostic system assertion message in com.sun.net.httpserver impl Reviewed-by: alanb, dfuchs
author chegar
date Wed, 21 Mar 2018 09:06:45 +0000
parents f6ad4d73c834
children e137b71166c4
files src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java	Tue Mar 20 17:42:20 2018 -0700
+++ b/src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java	Wed Mar 21 09:06:45 2018 +0000
@@ -407,7 +407,7 @@
                                     }
                                     handle (chan, conn);
                                 } else {
-                                    assert false;
+                                    assert false : "Unexpected non-readable key:" + key;
                                 }
                             } catch (CancelledKeyException e) {
                                 handleException(key, null);