timowest / scalagen

Java to Scala transformation
Apache License 2.0
217 stars 32 forks source link

problem with fields ending with undercore #65

Closed jmvanel closed 10 years ago

jmvanel commented 10 years ago

Scalagen creates declaration as usual:

val myField: MyType =

but the combination "_:" is badly understood by Scala compiler.

The remedy can be simple: just add systematically a space before :

While I'm here , the recipe for running scalagen from latest code (which is recommended AFAIK) is wrong. It is currently

mvn com.mysema.scalagen:scalagen-maven-plugin_2.9.3:0.3.2:main -DtargetFolder=target/scala

For the exact figures, confirm by looking in the pom.xml .