This doesn't compile with Scala 2.7.7.final or 2.8.0.final for me:
new FileInputStream("test.txt") getChannel transferTo(
0, Long.MaxValue, new FileOutputStream("test-copy.txt") getChannel)
This does compile with Scala 2.7.7.final and 2.8.0.final for me:
new FileInputStream("test.txt") getChannel() transferTo(
0, Long.MaxValue, new FileOutputStream("test-copy.txt") getChannel)
Why is it that I need to do getChannel()
instead of just getChannel
here?