[jboss-jira] [JBoss JIRA] (DROOLS-843) Empty comments in a rule's RHS cause parsing error

Mario Fusco (JIRA) issues at jboss.org
Thu Jul 9 03:07:02 EDT 2015


     [ https://issues.jboss.org/browse/DROOLS-843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco closed DROOLS-843.
------------------------------
    Resolution: Rejected


In the provided test case the String containing the drl is actually on a single line so it reads like:

{code}
rule R1 when then// end 
{code}

that clearly has the effect of commenting away the 'end' keyword.

> Empty comments in a rule's RHS cause parsing error
> --------------------------------------------------
>
>                 Key: DROOLS-843
>                 URL: https://issues.jboss.org/browse/DROOLS-843
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.1.0.Final, 6.2.0.Final, 6.3.0.Beta2
>            Reporter: Davide Sottara
>            Assignee: Mario Fusco
>             Fix For: 6.3.0.CR1
>
>
> Empty comments lead to an error
> mismatched input '<eof>' in rule "R1"
> [0,0]: Parser returned a null Package
> when parsing a RHS such as
> {code}
> rule EmptyDblSlashCommentInRHS when 
> then
> //
> end 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list