You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes:
- replace `new FileInputStream` with `Files.newInputStream`
- replace `new FileOutputStream` with `Files.newOutputStream`
Motivation:
#1939https://bugs.openjdk.org/browse/JDK-6357433 (in a comment) says:
> For jdk7, the workaround is to **use new file system API**. So instead
of new FileInputStream(f) and new FileOutputStream(f), use
f.toPath().newInputStream() and f.toPath().newOutputStream()
So seems like new NIO API does use, FILE_SHARE_DELETE, which is needed
to delete files in unix-style.
0 commit comments