[
https://issues.jboss.org/browse/JBRULES-2916?page=com.atlassian.jira.plug...
]
Edson Tirelli reassigned JBRULES-2916:
--------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
Unsupported Operation Exception crash due to (invalid)
multi-restriction
------------------------------------------------------------------------
Key: JBRULES-2916
URL:
https://issues.jboss.org/browse/JBRULES-2916
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.2.0.M1
Reporter: Wolfgang Laun
Assignee: Edson Tirelli
class Assignment {
Class target;
Class source;
}
rule isAssignable
when
Assignment( $target: target == (java.lang.Object.class) || == source )
then
end
Exception in thread "main" java.lang.UnsupportedOperationException: does not
support method call isAllowed(Object object, InternalWorkingMemory workingMemoiry)
at org.drools.rule.ReturnValueRestriction.isAllowed(ReturnValueRestriction.java:246)
at org.drools.rule.OrCompositeRestriction.isAllowed(OrCompositeRestriction.java:41)
at
org.drools.rule.MultiRestrictionFieldConstraint.isAllowed(MultiRestrictionFieldConstraint.java:113)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
at
org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:450)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:378)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:190)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:145)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:335)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:296)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:909)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:868)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:251)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira