8193072: File.delete() should remove its path from DeleteOnExitHook.files

Peter Levart peter.levart at gmail.com
Thu Jul 11 07:52:31 UTC 2019



On 7/11/19 9:47 AM, Peter Levart wrote:
>
> http://cr.openjdk.java.net/~plevart/jdk-dev/8193072_File.undoDeleteOnExit/webrev.02/ 
>
>

Another thing to consider (done in above webrev.02) is what to do with 
unbalanced cancelDeleteOnExit(). I think it is better to throw exception 
than to silently ignore it. This way unintentional bugs can be uncovered 
which would otherwise just cause erratic behavior.

Regards, Peter



More information about the core-libs-dev mailing list