code review request : 7105952: Improve finalisation for FileInputStream/FileOutputStream/RandomAccessFile

Alan Bateman Alan.Bateman at oracle.com
Wed Nov 2 09:49:32 UTC 2011


On 02/11/2011 09:18, Seán Coffey wrote:
>
> The parent gets added to the ArrayList when that ArrayList needs to be 
> set up (more than 1 referent) so this shouldn't be a problem. When the 
> ArrayList (otherParents) is non-null a close will be called on the 
> stream that initiated the close operation (through recursion) - that 
> should be a no-op at that stage though. (closed == true)
Okay, I see it although it is a bit strange to have two references to 
the original parent.

-Alan.



More information about the core-libs-dev mailing list