java-modern-tech-practice icon indicating copy to clipboard operation
java-modern-tech-practice copied to clipboard

Java Interoperability of Scala

Open oldratlee opened this issue 6 years ago • 0 comments

Interoperability

  • Official material
    • Scala interoperates https://docs.scala-lang.org/tour/tour-of-scala.html#scala-interoperates
    • Frequently Asked Questions - Java Interoperability https://www.scala-lang.org/old/faq/4
  • Interop Between Java and Scala - Code Commit http://www.codecommit.com/blog/java/interop-between-java-and-scala
  • Combining Scala and Java https://www.artima.com/pins1ed/combining-scala-and-java.html
  • java scala interoperability https://stackoverflow.com/questions/31304782/java-scala-interoperability
  • Java + Scala - ImportNew http://www.importnew.com/6188.html
  • Java/Scala互操作实践 1:基础操作 | 羊八井花园
  • A small example project demonstrating some of the challenges of using Scala libraries from Java (and Java from Scala). https://github.com/travisbrown/scala-java-interop

Using Scala Code from Java

  • Delightful Coding in Scala - Using Scala Code from Java https://lampwww.epfl.ch/~michelou/scala/using-scala-from-java.html
  • Integrating Scala components in a Java application – akquinet AG – Blog https://blog.akquinet.de/2011/07/20/integrating-scala-components-in-a-java-application/

Byte-code underneath

  • How are Scala traits compiled into Java bytecode?
    • https://stackoverflow.com/questions/2557303
    • https://codeday.me/bug/20170902/68017.html
  • Get Your Hands Dirty With Scala JVM Bytecode https://www.toptal.com/scala/scala-bytecode-and-the-jvm
  • Decompiling Traits with Scala 2.11 and 2.12 - Yuval Itzchakov’s Blog https://blog.yuvalitzchakov.com/decompiling-traits-with-scala-2.11-and-2.12/
  • IllegalAccessError with mixed Scala/Java due to trait encoding · Issue #2296 · scala/bug https://github.com/scala/bug/issues/2296
  • Intercepting Scala trait constructors - blog. https://blog.jayway.com/2010/04/28/intercepting-scala-trait-constructors/

Related topic

  • Performance of trait methods | The Scala Programming Language https://www.scala-lang.org/blog/2016/07/08/trait-method-performance.html
  • Java 8 默认方法(Default Methods) http://ebnbin.com/2015/12/20/java-8-default-methods/
  • Why can't I define a static method in a Java interface? - Stack Overflow https://stackoverflow.com/questions/512877

oldratlee avatar May 05 '19 09:05 oldratlee