RFR of 8024086:(fs) AtomicMoveNotSupportedException allows reason to be null
Alan Bateman
Alan.Bateman at oracle.com
Thu Apr 23 16:28:08 UTC 2015
On 23/04/2015 02:16, Brian Burkhalter wrote:
> This trivial specification issue does seem to have merit:
>
> Issue:https://bugs.openjdk.java.net/browse/JDK-8024086
> Diff:
>
> ---
> a/src/java.base/share/classes/java/nio/file/AtomicMoveNotSupportedException.java
> +++
> b/src/java.base/share/classes/java/nio/file/AtomicMoveNotSupportedException.java
> @@ -45,7 +45,7 @@
> * @param target
> * a string identifying the target file or {@code null} if
> not known
> * @param reason
> - * a reason message with additional information
> + * a reason message with additional information or
> {@code null}
> */
> public AtomicMoveNotSupportedException(String source,
> String target,
>
> It’s probably a virtual guarantee however that stating it is “trivial”
> will result in a “no, it’s non-trivial.”
>
I think this looks okay. It is technically a spec change (but one that
matches long standing behavior) so will need to be tracked.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20150423/5139e99f/attachment.html>
More information about the nio-dev
mailing list