JDK 9 RFR of 8146215: (fs) java/nio/file/Files/probeContentType/Basic.java failed frequently on Solaris-sparc with Unexpected type: text/plain
Brian Burkhalter
brian.burkhalter at oracle.com
Thu Aug 4 17:13:19 UTC 2016
On Aug 3, 2016, at 9:21 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> Does getFileNameMap() need the synchronization? I assume not, in which case fileNameMapLock could be removed and it could be reduced down to:
>
> FileNameMap map = fileNameMap;
> if (map == null) {
> fileNameMap = map = new FileNameMap() { ... }
> }
> return map;
>
> The rest looks okay to me.
I updated URLConnection accordingly
http://cr.openjdk.java.net/~bpb/8146215/webrev.04/
and reran the test job successfully. I assume that this should be good to go now.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160804/a3ab7ee5/attachment.html>
More information about the nio-dev
mailing list