<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body style="background-color: rgb(255, 255, 255); color: rgb(0, 0,
0);" text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 12/29/2014 04:51 PM, Alan Bateman
wrote:<br>
</div>
<blockquote cite="mid:54A17899.4060304@oracle.com" type="cite"><!--[if !IE]><DIV style="border-left: 2px solid #009900; border-right: 2px solid #009900; padding: 0px 15px; margin: 2px 0px;"><![endif]-->On
29/12/2014 09:45, Peter Levart wrote:
<br>
<blockquote type="cite"><!--[if !IE]><DIV style="border-left: 2px solid #009900; border-right: 2px solid #009900; padding: 0px 15px; margin: 2px 0px;"><![endif]-->
<br>
Thanks for looking at this, Alan.
<br>
<br>
You're right about File.getCanonicalFile(). It already checks
read permission for a file. The additional explicit check is
superfluous. I have removed it.
<br>
<br>
With explicit check I wanted the API to behave uniformly
regardless of whether the returned stream is opened by
getInputStream() call or an already opened stream is just
returned. getCannonicalFile() already takes care of it. Here's
the updated webrev:
<br>
<br>
<a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~plevart/jdk9-dev/FileInputStreamPool.8047769/webrev.03/">http://cr.openjdk.java.net/~plevart/jdk9-dev/FileInputStreamPool.8047769/webrev.03/</a>
<br>
<!--[if !IE]></DIV><![endif]--></blockquote>
Updated patch looks good to me.
<br>
<br>
-Alan.
<br>
<!--[if !IE]></DIV><![endif]--></blockquote>
<br>
Thanks, Alan.<br>
<br>
Peter<br>
</body>
</html>