[
https://issues.jboss.org/browse/DROOLS-442?page=com.atlassian.jira.plugin...
]
Stephen Johns updated DROOLS-442:
---------------------------------
Description:
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.
Note that I need spaces to be supported.
Defect 3
If you use a date format with spaces in it, it also performs incorrect substitutions.
{startTime:DATE:"dd-MMM-yyyy HH:mm"}
was:
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.
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.
Note that I need spaces to be supported.
Defect 3
If you use a date format with spaces in it, it also performs incorrect substitutions.
{startTime:DATE:"dd-MMM-yyyy HH:mm"}
--
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