[jboss-jira] [JBoss JIRA] Updated: (JBRULES-519) doublequotes not escaped in strings in a DRL rules RHS

Tomasz Cichocki (JIRA) jira-events at jboss.com
Fri Oct 20 11:48:41 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBRULES-519?page=all ]

Tomasz Cichocki updated JBRULES-519:
------------------------------------

    Attachment: modified_drl-single_token.g

Modified DRL grammar file.
Ambiguoities in grammar removed.
Body of a function and body of a rule is read as single token -- fixed problems parsing code used in actions and functions.
DSL not supported in RHS.

> doublequotes not escaped in strings in a DRL rules RHS
> ------------------------------------------------------
>
>                 Key: JBRULES-519
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-519
>             Project: JBoss Rules
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Drl Parser/Builder
>    Affects Versions: 3.0.4, 3.0.3
>            Reporter: Tomasz Cichocki
>         Assigned To: Mark Proctor
>         Attachments: modified_drl-single_token.g
>
>          Time Spent: 1 day
>  Remaining Estimate: 0 minutes
>
> There is a problem with "-s inside string literals.
> Example:
> rule "test_Quotes"
>    when
>       InitialFact()
>    then
>       String s = "\"";
> end
> results in DRL compilation error:
> [mTokens, mSTRING]: line 14:0 mismatched char: '?' on line 14; expecting char '"'
> (line 14 is the last line in the file)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list