diff options
author | Li Haoyi <haoyi@dropbox.com> | 2014-11-10 21:10:07 -0800 |
---|---|---|
committer | Li Haoyi <haoyi@dropbox.com> | 2014-11-10 21:10:07 -0800 |
commit | 8ced367e0d736b429f0b39ae7fde2b76b1d64ed5 (patch) | |
tree | e1154648219f8367c2537580f207e8f100e75590 /book/src/main/scalatex/book/indepth/JavaAPIs.scalatex | |
parent | 2846d28c95d183792d6d809d1c3884b619b6f937 (diff) | |
download | hands-on-scala-js-8ced367e0d736b429f0b39ae7fde2b76b1d64ed5.tar.gz hands-on-scala-js-8ced367e0d736b429f0b39ae7fde2b76b1d64ed5.tar.bz2 hands-on-scala-js-8ced367e0d736b429f0b39ae7fde2b76b1d64ed5.zip |
More refactoring
Diffstat (limited to 'book/src/main/scalatex/book/indepth/JavaAPIs.scalatex')
-rw-r--r-- | book/src/main/scalatex/book/indepth/JavaAPIs.scalatex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/book/src/main/scalatex/book/indepth/JavaAPIs.scalatex b/book/src/main/scalatex/book/indepth/JavaAPIs.scalatex index 89f0a57..fe5c2df 100644 --- a/book/src/main/scalatex/book/indepth/JavaAPIs.scalatex +++ b/book/src/main/scalatex/book/indepth/JavaAPIs.scalatex @@ -4,18 +4,18 @@ There are many reasons you may want to port a Java class to Scala.js: you want to use it directly, you may be trying to port a library which uses it. In general, we haven't been porting things "for fun", and obscure classes like @hl.scala{org.omg.corba} will likely never be ported: we've been porting things as the need arises in order to support libraries (e.g. @a("Scala.Rx", href:="https://github.com/lihaoyi/scala.rx") that need them. @sect{Available Java APIs} - + @ul - @for(data <- Book.javaAPIs) + @for(data <- BookData.javaAPIs) @li @a(data._1, href:=data._2) - + @sect{Porting Java APIs} @p The process for making Java library classes available in Scala.js is relatively straightforward: @ul @li - Find a class that you want to use in Scala.js, but is not implemented. + Find a class that you want to use in Scala.js, but is not implemented. @li Write a clean-room implementation in Scala, without looking at the source code of @a("OpenJDK", href:="http://openjdk.java.net/"). This is due to legal-software-license incompatibility between OpenJDK and Scala.js. Reading the docs or specification are fine, as is looking at the source of alternate implementations such as @a("Harmony", href:="http://harmony.apache.org/") @li |