The change looks good. I approve this change.
-Chris
Jean-Christophe Collet wrote:
Here is my proposed fix for CR 6660405.
The issue is that after a redirect, and if there is a cache hit (i.e.
the URL is found in the cache) HttpURLConnection will return the wrong
InputStream. Details are in the evaluation section of the CR.
My proposed fix is to set inputStream back to null in
sun.net.www.protocol.http.HttpURLConnection.disconnectInternal().
I've also included a regression test that reproduces the bug.
See patch attached.