I have a Java project targetting Java 1.5 (18.104.22.168).
I'm trying to add Scala (2.8.0) to it but getting compilation error in IntelliJ (10.0.1 Build UI-99.32 running under JDK 1.6.0_21 on Windows XP) :
Compiler internal error. Process terminated with exit code 1
Nothing special shows up in IntelliJ logs:
2011-01-05 14:11:19,453  INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2011-01-05 14:11:21,156  INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED; Errors: 1; warnings: 0 took 1703 ms: 0 min 1sec
The issue goes away if I switching Project SDK to Java 6 but I need to have it running with 1.5.
I tried adding -target:jvm-1.5 to Scala Facet Additional command-line parameters to force scalac to use 1.5 but no success.
Any ideas how to make this combination work if at all ?