Has anybody run across a Java/Java EE framework which causes problems if used with Scala?
-
4I'm hoping for no answers to this one ;) – laher May 10 '11 at 21:31
-
1BTW, what is the purpose of the question? Could you explain a bit, why do you need this information? Pure curiosity? – Grzegorz Oledzki May 11 '11 at 20:31
-
Well, I would like to know if you have to give up on any of the frameworks by switching to Scala. – Nermin Serifovic May 11 '11 at 23:32
3 Answers
Don't know of a specific one, but any pre-Java 5 framework that uses raw types may cause trouble at some point in Scala, especially if you have a raw type in the hierarchy of a class you must implement. Here are a few questions related to this issue:

- 1
- 1

- 59,296
- 21
- 173
- 234
The was a problem for a while with JSoup hitting a bug in Scala, making typical JSoup usage broken in Scala without writing a bit of extra Java. Interestingly, the JSoup developers altered JSoup to avoid this bug, so current versions integrate smoothly. I'm not sure if the Scala bug responsible is fixed yet.

- 1,588
- 1
- 10
- 19
Commons-CLI won't work in Scala (at least, not if you use their OptionBuilder class). The reason is that the OptionBuilder uses static methods, and then has you call them via an instance. Javac will let you get away with that (it's at worst a warning), but scalac won't find the static methods. It looks for them on the instance, but they're not there. From scala's perspective, they'd be on the companion object, but that's not what you have.

- 5,507
- 2
- 22
- 31