title: "Trickiness" to calling Scala code from Java?
body: <p>There is a Scala library (that only exists written in Scala) that I really want to use in my Java app. I am trying to evaluate whether I can do this or not without suffering any hidden gotchyas/caveats/pitfalls. So I went straight to the Scala FAQ, where <a href="http://www.scala-lang.org/old/node/266.html" rel="nofollow">they answer this very question</a> (well, sort of):</p>
  
  <blockquote>
    <p>Accessing Java classes from Scala code is no problem at all. <strong>Using a Scala class from Java can get tricky, in particular if your Scala class uses advanced features like generics, polymorphic methods, or abstract types.</strong></p>
  </blockquote>
  
  <p>I then found several other sites (such as <a href="http://lampwww.epfl.ch/~michelou/scala/using-scala-from-java.html" rel="nofollow">this one</a>) that seem to indicate there is no problem in calling Scala from inside Java, as it is all compiled JVM bytecode.</p>
  
  <p>So I have two very conflicting sources of information, and I'm stuck in the middle trying to determine what use cases make calling Scala from Java "<em>tricky</em>", and which use cases are straight forward. Any ideas?</p>