[
http://jira.jboss.com/jira/browse/JBRULES-703?page=all ]
Mark Proctor closed JBRULES-703.
--------------------------------
Resolution: Out of Date
We now use static imports, so this isn't an issue any more. Both janino and jdt can
target jdk1.4 bytecode while supporting static imports.
Class cast inside function calls triggers
org.drools.RuntimeDroolsException: unable to find the function
--------------------------------------------------------------------------------------------------------
Key: JBRULES-703
URL:
http://jira.jboss.com/jira/browse/JBRULES-703
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 3.1-m1
Reporter: Juergen none
Assigned To: Mark Proctor
Parsing an 3.0.5 drools file .drl yields, e.g.:
Caused by: org.drools.RuntimeDroolsException: unable to find the function ','
at
org.drools.semantics.java.StaticMethodFunctionResolver.resolveFunction(StaticMethodFunctionResolver.java:79)
at org.drools.semantics.java.FunctionFixer.fix(FunctionFixer.java:130)
at org.drools.semantics.java.FunctionFixer.fix(FunctionFixer.java:66)
at org.drools.semantics.java.builder.EvalBuilder.build(EvalBuilder.java:78)
at
org.drools.semantics.java.builder.GroupElementBuilder.build(GroupElementBuilder.java:63)
at org.drools.semantics.java.RuleBuilder.build(RuleBuilder.java:178)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:381)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:219)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:148)
at
org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(LocalRuleExecutionSetProviderImpl.java:120)
at
org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(LocalRuleExecutionSetProviderImpl.java:77)
for a class cast inside a function call (in condition or consequence block):
eval(
globalVar.f((java.util.Collection)a, (java.util.Collection)b) >= c.floatValue()
)
--
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