[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1759) Exception when compiling a rule with "dialect mvel"
Ming Jin (JIRA)
jira-events at lists.jboss.org
Thu Sep 4 09:43:43 EDT 2008
[ https://jira.jboss.org/jira/browse/JBRULES-1759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12428246#action_12428246 ]
Ming Jin commented on JBRULES-1759:
-----------------------------------
Mark,
Thanks for the information. The rule compiled after removing the new array constructor. But it generated a run time exception because MVEL parsed the array as array of Object's, an array of String[]'s:
Caused by: org.mvel.PropertyAccessException: unable to resolve property: unable to resolve method: test.TestObject.stayHasDaysOfWeek(java.lang.String, java.lang.Boolean, [Ljava.lang.Object;) [arglength=3]
at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:604)
at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:272)
Any work around except change the method definition?
> Exception when compiling a rule with "dialect mvel"
> ---------------------------------------------------
>
> Key: JBRULES-1759
> URL: https://jira.jboss.org/jira/browse/JBRULES-1759
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Affects Versions: 5.0.0.M1
> Reporter: Ming Jin
> Assignee: Mark Proctor
> Attachments: testdrools.zip
>
>
> The following expression would compile without any problem with "dialect java":
> new String[][]{{"2008-04-01", "2008-04-10"}}
> But would generate a compiler error - "Unable to build expression...." with "dialect mvel".
> Will upload an sample code to demonstrate this bug.
--
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