Rikkola opened a new pull request, #7312:
URL: https://github.com/apache/incubator-kie/pull/7312

   
   Closes: https://github.com/apache/incubator-kie/issues/7311
   
   Consequence.rewriteChannels() called asNameExpr() on every array-access 
scope before checking it was 'channels', and hasDroolsScope() went through 
DrlxParseUtil.findRootNodeViaScope(), which rejects array access. An expression 
such as Color.values()[1].name() therefore failed rule compilation with an 
exception on the executable model. Guard the channels rewrite with isNameExpr() 
and resolve the drools scope root through array access.
   
   Assisted-by: IBM Bob
   
   


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