Hi
This little rule won't compile:
rule "Test from and or"
dialect "mvel"
when
$person : Person()
Address( ) from $person.addresses
(Address() or Address())
then
# do stuff
end
BuildError: Unable to build expression for 'from' : [Error: Failed to
compile: 1 compilation error(s):
- (1,7) unqualified type in strict mode for: $person]
[Near : {... Unknown ....}]
^
[Line: 1, Column: 0] '$person.addresses(Address() or Address())'
BuildError: Unable to determine the used declarations.
java.lang.Class cannot be cast to org.mvel2.util.MethodStub
This does work
rule "Test from and or"
dialect "mvel"
when
$person : Person()
Address( ) from $person.addresses
Address() or Address()
then
# do stuff
end
And this also:
rule "Test from and or"
dialect "mvel"
when
$person : Person()
Address( ) from $person.getAddresses()
(Address() or Address())
then
# do stuff
end
Can anybody confirm this as a bug?
Tnx
Evert
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Possible-bug-using-fr...
Sent from the Drools - User mailing list archive at
Nabble.com.