--- a/test/jdk/java/net/httpclient/HttpServerAdapters.java Wed Feb 28 19:13:16 2018 +0000
+++ b/test/jdk/java/net/httpclient/HttpServerAdapters.java Thu Mar 01 13:36:41 2018 +0000
@@ -302,7 +302,7 @@
} catch (Throwable x) {
System.out.println("WARNING: exception caught in HttpTestHandler::handle " + x);
System.err.println("WARNING: exception caught in HttpTestHandler::handle " + x);
- if (PRINTSTACK) x.printStackTrace(System.out);
+ if (PRINTSTACK && !expectException(t)) x.printStackTrace(System.out);
throw x;
}
}