[jboss-jira] [JBoss JIRA] Created: (JBRULES-1639) unable to evaluate expressions on string length in MVEL dialect

Alex McCarrier (JIRA) jira-events at lists.jboss.org
Tue Jun 10 19:59:15 EDT 2008


unable to evaluate expressions on string length in MVEL dialect
---------------------------------------------------------------

                 Key: JBRULES-1639
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1639
             Project: JBoss Drools
          Issue Type: Bug
          Components: Drl Parser/Builder
    Affects Versions: 4.0.6
         Environment: os x, drools 4.0.7
            Reporter: Alex McCarrier
         Assigned To: Mark Proctor


This actually happens in 4.0.7 (not an option in versions field so I marked as 4.0.6).

If you have a rule like:

rule "whatever"
	when
		MyObj(stringField.length == "5")
	then
		.. do something ..
end

You end up with a compile exception complaining that length is not a valid property.  Same happens if you try to use eval() to work around it.

-- 
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