-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b12
This is to get clarification on following use cases w.r.to spec.
1. what would be the expected output if Path (one or both) point to a directory, not a file.
when i tried this Linux i am getting "java.io.IOException: Is a directory"
In Windows it's an AccessDeniedException.
2. What would be the expected output when one of the files doesn't exist and another one is present?
3. java.lang.SecurityException - In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to both files.
Does it apply to the case where two paths refer the same file and that file does not have read access?
1. what would be the expected output if Path (one or both) point to a directory, not a file.
when i tried this Linux i am getting "java.io.IOException: Is a directory"
In Windows it's an AccessDeniedException.
2. What would be the expected output when one of the files doesn't exist and another one is present?
3. java.lang.SecurityException - In the case of the default provider, and a security manager is installed, the checkRead method is invoked to check read access to both files.
Does it apply to the case where two paths refer the same file and that file does not have read access?
- csr for
-
JDK-8314682 (fs) Files:mismatch spec clarifications
-
- Closed
-
- duplicates
-
JDK-8278167 Specify that Files.mismatch does not accept directories
-
- Closed
-
- relates to
-
JDK-8202285 (fs) Add a method to Files for comparing file contents
-
- Resolved
-
-
JDK-8202302 (fs) New Files.mismatch method for comparing files
-
- Closed
-
(1 links to)