New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in compilation when an attribute is named type #252

romainreuillon opened this Issue May 31, 2014 · 0 comments


None yet
2 participants

romainreuillon commented May 31, 2014

If an attribute is named with a scala reserved keyword backtick should be inserted in the generated code. For now, the compilation fails:

[error] /home/reuillon/Documents/Recherche/Projects/testscalaxb/wmsstub/target/scala-2.10/src_managed/main/sbt-scalaxb/generated/WMProxy.scala:9: identifier expected but 'type' found.
[error]   def getJDL(jobId: String, type: generated.JdlType): Either[scalaxb.Soap11Fault[generated.AuthenticationFaultType], String]
[error]                             ^

romainreuillon added a commit to romainreuillon/scalaxb that referenced this issue Jun 1, 2014

@eed3si9n eed3si9n closed this in a236004 Jun 1, 2014

eed3si9n added a commit that referenced this issue Jun 1, 2014

Merge pull request #256 from romainreuillon/fix252
Fixes #252. Escpape params which name are reserved scala keywords.

@eed3si9n eed3si9n added the bug label Jun 8, 2014

@eed3si9n eed3si9n added this to the 1.2.0 milestone Jun 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment