FileChannelImpl does not have a finalizer. As a result, if one becomes garbage without being closed, the file descriptor stays open until the JVM terminates.
Various Stream factories (Files.lines, Files.walk) are ultimately backed by a FileChannelImpl. If the user does not close the stream, then the FCI is leaked and therefore the file descriptor is leaked.
Various Stream factories (Files.lines, Files.walk) are ultimately backed by a FileChannelImpl. If the user does not close the stream, then the FCI is leaked and therefore the file descriptor is leaked.