-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
b11
-
generic
In line 84 and also line 304 of WindowsFileCopy.java in java.base/windows/classes/sun/nio/fs/ the details message lacks the string representation of the actual option instance that is not supported.
Proposal: replace
throw new UnsupportedOperationException("Unsupported copy option");
with
throw new UnsupportedOperationException("Unsupported copy option: " + option);
Proposal: replace
throw new UnsupportedOperationException("Unsupported copy option");
with
throw new UnsupportedOperationException("Unsupported copy option: " + option);