4774868: (fc spec) Unclear spec for FileChannel.force

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2022-01-28 17:12:42 +00:00
parent 409382ba4b
commit 95ee9bf7be

View file

@ -566,7 +566,9 @@ public abstract class FileChannel
* actually done is system-dependent and is therefore unspecified.
*
* <p> This method is only guaranteed to force changes that were made to
* this channel's file via the methods defined in this class. It may or
* this channel's file via the methods defined in this class, or the methods
* defined by {@link FileOutputStream} or {@link RandomAccessFile} when the
* channel was obtained with the {@code getChannel} method. It may or
* may not force changes that were made by modifying the content of a
* {@link MappedByteBuffer <i>mapped byte buffer</i>} obtained by
* invoking the {@link #map map} method. Invoking the {@link