Scala compile failing on 'recursive wildard' Java method