8199437: Improve diagnostic system assertion message in com.sun.net.httpserver impl
authorchegar
Wed, 21 Mar 2018 09:06:45 +0000
changeset 49271 7b35d2a59fb3
parent 49270 f6ad4d73c834
child 49272 e137b71166c4
8199437: Improve diagnostic system assertion message in com.sun.net.httpserver impl Reviewed-by: alanb, dfuchs
src/jdk.httpserver/share/classes/sun/net/httpserver/ServerImpl.java
--- 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);