RFR: 8252767: URLConnection.setRequestProperty throws IllegalAccessError [v2]
Jaikiran Pai
jpai at openjdk.java.net
Sun Sep 6 11:22:01 UTC 2020
On Sun, 6 Sep 2020 10:56:44 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> The URL creation isn't technically right as you can't reliably use a file path string as a URL path. Something like the
> following would be more correct:
URL url = Path.of(System.getProperty("java.io.tmpdir")).toUri().toURL();
I've now updated the PR to fix this.
> Also minor nit but importing java.net.URL and not URLConnection is a bit strange.
Sorry, that wasn't intentional. Not sure how I managed to do that. I've included this change in the updated PR.
-------------
PR: https://git.openjdk.java.net/jdk/pull/26
More information about the net-dev
mailing list