Fix Scala compile issue by using a scala <-> java MITM class