tkobayas commented on code in PR #6518:
URL:
https://github.com/apache/incubator-kie-drools/pull/6518#discussion_r2525993307
##########
drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/OOPathExprGenerator.java:
##########
@@ -204,6 +205,11 @@ private void toPatternExpr(String bindingId,
List<DrlxParseResult> list, DrlxPar
expr.setScope( patternExpr );
patternExpr = expr;
}
+ } else {
+ DrlxParseFail fail = (DrlxParseFail) drlx;
+ if (fail.getError() != null) {
+ context.addCompilationError(fail.getError());
+ }
Review Comment:
Add the compilation error for this OOPathExprGenerator. Just like the usual
case
https://github.com/apache/incubator-kie-drools/blob/main/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/generator/visitor/pattern/ClassPatternDSL.java#L325-L329
--
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]