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


##########
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/antlr4/DRLVisitorImpl.java:
##########
@@ -543,7 +543,7 @@ public BehaviorDescr 
visitPatternFilter(DRLParser.PatternFilterContext ctx) {
     @Override
     public FromDescr visitFromExpression(DRLParser.FromExpressionContext ctx) {
         FromDescr fromDescr = new FromDescr();
-        fromDescr.setDataSource(new MVELExprDescr(ctx.getText()));
+        fromDescr.setDataSource(new 
MVELExprDescr(getTextPreservingWhitespace(ctx)));

Review Comment:
   The previous code didn't preserve a white-space, so resulted in `newPerson`.



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