Scala repl input issue



So, I’ve installed scala from the repos on a fresh 18.04 system. When I enter repl the characters I input does not appear. The repl seems to be working fine as there is response from it. This happens both in mate terminal as well as rxvt-unicode.
Any help and ideas would be greatly appreciated.



So, I think I might have found the problem.
Apparently , this happens when I use any java version other than openjdk-11 even though depends are as following:
default-jre-headless (>= 2:1.7)
Standard Java or Java compatible Runtime (headless)
or java7-runtime-headless
virtual package provided by default-jre-headless, openjdk-11-jre-headless, openjdk-8-jre-headless

Fair to assume this is a bug?