Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Yes. It is very simple.
Scala compiles to java bytecode. Hence using it with WebObjects is fairly straightforward.

However, tool support is a weak point.  You should use Eclipse 3.6 with bundle-less WO builds.  If your Application class is in Scala then you will have to create an Eclipse launch configuration manually.  One weird thing is that once you add the Scala nature to a WO project WOD completion will stop working - this is unfortunate.  Also the Scala plugin is rather slow and still very buggy.

WebObjects In Scala

The following highlights some of the differences between Java and Scala in WebObjects:






<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="614c6e09d402ad89-22661286-45f647b7-9e3c9eb8-afedc06ecdb47e815a8f573f"><ac:plain-text-body><![CDATA[


[object name]


<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a7257d608155111b-dbd5c55d-43ef482f-bf41ac9c-23277d8f502e514c9dfe6b32"><ac:plain-text-body><![CDATA[


[object setName:aName]

object.setName(aName) = aName