summaryrefslogtreecommitdiff
path: root/src/repl
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2017-02-20 16:17:34 +0100
committerGitHub <noreply@github.com>2017-02-20 16:17:34 +0100
commit23e5ed9219b503c6a394b28d014ea5c29893db8d (patch)
tree982f832e86773b4ec66977008b5dd60ab75195d5 /src/repl
parentcad3c3da3ea505b2e63878abad8df76365f999a4 (diff)
parent96e8e9789ba05a591f8b8932b65ff90a5559e552 (diff)
downloadscala-23e5ed9219b503c6a394b28d014ea5c29893db8d.tar.gz
scala-23e5ed9219b503c6a394b28d014ea5c29893db8d.tar.bz2
scala-23e5ed9219b503c6a394b28d014ea5c29893db8d.zip
Merge pull request #5707 from retronym/topic/java9-prepare
More groundwork for JDK 9 support
Diffstat (limited to 'src/repl')
-rw-r--r--src/repl/scala/tools/nsc/interpreter/Scripted.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/scala/tools/nsc/interpreter/Scripted.scala b/src/repl/scala/tools/nsc/interpreter/Scripted.scala
index 6aef486957..8d87d98e53 100644
--- a/src/repl/scala/tools/nsc/interpreter/Scripted.scala
+++ b/src/repl/scala/tools/nsc/interpreter/Scripted.scala
@@ -331,7 +331,7 @@ class WriterOutputStream(writer: Writer) extends OutputStream {
byteBuffer.flip()
val result = decoder.decode(byteBuffer, charBuffer, /*eoi=*/ false)
if (byteBuffer.remaining == 0) byteBuffer.clear()
- if (charBuffer.position > 0) {
+ if (charBuffer.position() > 0) {
charBuffer.flip()
writer write charBuffer.toString
charBuffer.clear()