-
Notifications
You must be signed in to change notification settings - Fork 18
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
[eclipse/xtext-core#1835] better treatment of unsupported Java versions in Xtext #198
base: master
Are you sure you want to change the base?
Conversation
5df47a7
to
fb5e1db
Compare
@@ -230,12 +230,16 @@ class XtextGradleBuilder implements IncrementalXtextBuilder { | |||
attachToEmfObject(resourceSet) | |||
language2GeneratorConfig.putAll( | |||
gradleRequest.generatorConfigsByLanguage.mapValues [ gradleConfig | | |||
val javaVersion = JavaVersion.fromQualifier(gradleConfig.javaSourceLevel.toString) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
am not sure how we should react here.
Java 11 as default is not available as we compile against old version.
maybe we should stop here and report error instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should make this an error.
fb5e1db
to
7f9e7be
Compare
…ns in Xtext Signed-off-by: Christian Dietrich <[email protected]>
7f9e7be
to
450bfee
Compare
if (javaVersion === null) { | ||
val msg = "Xtext does not support Java " + gradleConfig.javaSourceLevel.toString + "." | ||
gradleRequest.logger.error(msg) | ||
throw new GradleException(msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it ok to throw here or should we continue with default and just log error
[eclipse/xtext-core#1835] better treatment of unsupported Java versions in Xtext