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="1bf76f147752ba4b-361c58b7-4faf43e7-9a6ba671-76bc6c6a592b78c23f3b8a8f"><ac:plain-text-body><![CDATA[


[object name]


<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e48c3b9ab32e1afb-7a72bb90-492248cd-8f3baf41-d9fb73a76024be5019a592e0"><ac:plain-text-body><![CDATA[


[object setName:aName]

object.setName(aName) = aName