[jboss-jira] [JBoss JIRA] (DROOLS-442) Defect(s) in DSL and Enumerations

Stephen Johns (JIRA) issues at jboss.org
Tue Feb 25 09:33:49 EST 2014


Stephen Johns created DROOLS-442:
------------------------------------

             Summary: Defect(s) in DSL and Enumerations
                 Key: DROOLS-442
                 URL: https://issues.jboss.org/browse/DROOLS-442
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 6.0.1.Final
            Reporter: Stephen Johns
            Assignee: Mark Proctor


The following works like you would think: 

[when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x} {y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", "")) 

Defect 1? 
If you remove the spaces between the "} {" 
[when]xxx {l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo("any", "any", "{l}", "{x}", "{y}", "", "")) 

l = "" 
x = "" 
y = l + x + y 

Defect 2? 
Even in the first case, if the Enumeration returns a value that has space(s) in it (which maybe should not be allowed?) it will make for odd substitutions as well. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list