[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1858) a double quote in a textual when criterion doesn't work

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri Nov 21 12:27:46 EST 2008


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

Edson Tirelli closed JBRULES-1858.
----------------------------------

    Fix Version/s: 5.0.0.M3
       Resolution: Done
         Assignee: Edson Tirelli  (was: Mark Proctor)


Fixing this problem breaks backward compatibilities, as previously, drools did not required regexp to be escaped in DRL files. So, I added a configuration option that makes drools behave as it was in 4, for those that don't require the escape, but made the default to unquote string escapes, fixing this problem:

PackageBuilderConfiguration.setProcessStringEscapes( boolean processStringEscapes);


Fixed. Thanks for reporting.

>  a double quote in a textual when criterion doesn't work
> --------------------------------------------------------
>
>                 Key: JBRULES-1858
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-1858
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions:  5.0.0.M2
>         Environment: eclipse plugin, Linux, Java 6
>            Reporter: Jean-Marc Vanel
>            Assignee: Edson Tirelli
>             Fix For: 5.0.0.M3
>
>
> To reproduce: 
> - take the Hello World project;
> - add a field named "text" in Message class;
> - add this in the when of rule 1 :
>          , text == "message\""
> - add this in the main() method:
>                     message.setText("message\"");
> - Then no output is produced :-( .
> Of course if you remove \" in both places it works.

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

        



More information about the jboss-jira mailing list