tkobayas commented on code in PR #6569:
URL:
https://github.com/apache/incubator-kie-drools/pull/6569#discussion_r2734994447
##########
drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/DrlxParseUtil.java:
##########
@@ -497,7 +497,7 @@ public int hashCode() {
public static BlockStmt parseBlock(String ruleConsequenceAsBlock) {
ParserConfiguration parserConfiguration = new ParserConfiguration();
-
parserConfiguration.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_15);
+
parserConfiguration.setLanguageLevel(ParserConfiguration.LanguageLevel.JAVA_21);
Review Comment:
Using `ParserConfiguration.LanguageLevel.JAVA_21` is fine even if the
runtime java is 17, because this is used for parsing and java code generation.
Of course, if you use java21 syntax with java17 runtime, it will result in a
compilation error, which is expected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]