Details
-
Bug
-
Resolution: Fixed
-
P3
-
14
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8267250 | 13.0.8 | Yuri Nesterenko | P3 | Resolved | Fixed | b03 |
JDK-8268759 | 11.0.13-oracle | Ravi Reddy | P3 | Resolved | Fixed | b04 |
JDK-8267615 | 11.0.12 | Brian Burkhalter | P3 | Resolved | Fixed | b04 |
Description
ChannelInputStream.skip(long) needs to be re-implemented to support skipping beyond the current size of the file. It should also allow backward skipping to a position at or after the beginning of the stream. This will make it consistent with FileInputStream.skip(n) and FileChannel.position(p).
In addition, the test added byJDK-8227080 should be moved from Files/Misc.java to another test, maybe InputStreamTest.java.
In addition, the test added by
Attachments
Issue Links
- backported by
-
JDK-8267250 (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size
- Resolved
-
JDK-8267615 (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size
- Resolved
-
JDK-8268759 (fs) Files.newInputStream(...).skip(n) should allow skipping beyond file size
- Resolved
- relates to
-
JDK-8267641 [11u] 8227609 backport typo
- Resolved
-
JDK-8227080 (fs) Files.newInputStream(...).skip(n) is slow
- Resolved
(3 links to)