tkobayas commented on code in PR #5794:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5794#discussion_r1529778339


##########
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/antlr4/DRLVisitorImpl.java:
##########
@@ -268,6 +268,7 @@ public RuleDescr visitRuledef(DRLParser.RuledefContext ctx) 
{
             
ruleDescr.setConsequence(trimThen(getTokenTextPreservingWhitespace(ctx.rhs(), 
tokenStream))); // RHS is just a text
         }
 
+        populateStartEnd(ruleDescr, ctx);

Review Comment:
   The root cause was that `RuleDescr.getStartCharacter()` returned `-1` 
(missed in `DRLVisitorImpl`), so the kbase was not updated (the error was 
logged). So fixed.
   
   
https://github.com/apache/incubator-kie-drools/blob/dev-new-parser/drools-compiler/src/main/java/org/drools/compiler/kie/util/ChangeSetBuilder.java#L247



-- 
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]

Reply via email to