--- old/test/jdk/sun/net/www/protocol/https/HttpCallback.java 2019-08-13 16:22:28.000000000 +0100 +++ new/test/jdk/sun/net/www/protocol/https/HttpCallback.java 2019-08-13 16:22:27.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -36,4 +36,14 @@ * client and used to send the response */ void request (HttpTransaction msg); + + /** + * Tells whether the server should simply close the + * connection and ignore the request when an exception + * occurs. Default is to propagate the exception. + * @return true if the request should be ignored. + **/ + default boolean closeOnException(Exception ex) { + return false; + } }