[jboss-jira] [JBoss JIRA] (DROOLS-4750) str[endsWith] operator fails

Alberto Fanjul Alonso (Jira) issues at jboss.org
Wed Nov 13 08:16:00 EST 2019


    [ https://issues.jboss.org/browse/DROOLS-4750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812013#comment-13812013 ] 

Alberto Fanjul Alonso commented on DROOLS-4750:
-----------------------------------------------

Seems this is related with some kind of preprocessing of drl files, done in `StringConditionInspector`:

https://github.com/kiegroup/drools/blob/fade2a9347a5bdad06fd3f31c80b1c2ccc379c73/drools-verifier/drools-verifier-core/src/main/java/org/drools/verifier/core/cache/inspectors/condition/StringConditionInspector.java#L248

Let me know if that's correct to close the case.

> str[endsWith] operator fails
> ----------------------------
>
>                 Key: DROOLS-4750
>                 URL: https://issues.jboss.org/browse/DROOLS-4750
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Alberto Fanjul Alonso
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: str-with-reproducer.tar
>
>
> In documentation 
> https://docs.jboss.org/drools/release/7.23.0.Final/drools-docs/html_single/#drl-rules-WHEN-con_drl-rules
> operator str[endsWith] is supposed to be supported, it it is not working.
> Fails with:
> {code:java}
> java.lang.Exception: Rule contains errors![[5,19]: [ERR 102] Line 5:19 mismatched input 'str' in rule "pnr first name end with"]
> 	at com.amadeus.mdw.bzr.drools_reproducer.StrWithFailOnFirstCompilationErrorReproducerTest.parse(StrWithFailOnFirstCompilationErrorReproducerTest.java:58)
> 	at com.amadeus.mdw.bzr.drools_reproducer.StrWithFailOnFirstCompilationErrorReproducerTest._03_parseStrWith(StrWithFailOnFirstCompilationErrorReproducerTest.java:74)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list