hg: jdk9/dev/jdk: 8132539: (fs) Files.lines(path).collect() returns wrong value in JDK 9 with certain files
brian.burkhalter at oracle.com
brian.burkhalter at oracle.com
Wed Aug 12 15:00:42 UTC 2015
Changeset: 9e837d9e2f5f
Author: bpb
Date: 2015-08-12 07:55 -0700
URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/9e837d9e2f5f
8132539: (fs) Files.lines(path).collect() returns wrong value in JDK 9 with certain files
Summary: Do not use the Spliterator approach for lines() if the FileChannel size is thought to be zero.
Reviewed-by: chegar
! src/java.base/share/classes/java/nio/file/Files.java
! test/java/nio/file/Files/StreamTest.java
More information about the jdk9-dev-changes
mailing list