This page is no longer maintained — Please continue to the home page at

java.util.Map values unexpectedly cast to java.lang.String

No replies
Alex 2
Joined: 2011-11-02,
User offline. Last seen 42 years 45 weeks ago.
Hi everybody
while using I stumbled upon a weird error. The Scala objects stored into a java.util.Map are for some reason cast to java.lang.String, whereas Java objects seem to be fine. Elasticsearch's main developer is looking at the issue, but I suspect it could be some more or less well-known Java-Scala interoperability problem. Could anybody enlighten me?
This is the Scala code to replicate the problem here is the stack trace

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland