[jboss-jira] [JBoss JIRA] Created: (JBRULES-1758) Compiled Rule Would Not Execute with Array of Objects in Java Expressions

Ming Jin (JIRA) jira-events at lists.jboss.org
Wed Sep 3 11:53:51 EDT 2008


Compiled Rule Would Not Execute with Array of Objects in Java Expressions
-------------------------------------------------------------------------

                 Key: JBRULES-1758
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1758
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Drl Parser/Builder
    Affects Versions: 5.0.0.M1
         Environment: Java
            Reporter: Ming Jin
            Assignee: Mark Proctor
         Attachments: testdrools.zip

The compilation is fine for a rule containing the following statement:
eval($fact.stayHasDaysOfWeek("1,2,3", false, (String[][]){{"2008-04-01", "2008-04-10"}})),

But would cause the following exception during execution:
org.drools.RuntimeDroolsException: org.drools.base.mvel.MVELEvalExpression at 1ad98ef : org.mvel.PropertyAccessException: unable to resolve property: $fact.stayHasDaysOfWeek("1,2,3", false, (String[][]){{"2008-04-01", "2008-04-10"}})
....

Will upload the test project to demonstrate this issue.

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