-
Bug
-
Resolution: Done
-
Major
-
5.2.0.Final, 5.3.0.Beta1
-
None
Reported by Wolfgang:
========
This rule
test.drl
rule "test" when $l : ArrayList() from collect (MyClass (attribute == false)); then for(Object o : new ArrayList( $l )) { MyClass o2 = (MyClass) o; modify(o2) { setAttribute(true) } } end
does not compile: The method setAttribute(boolean) is undefined for the type Object
This, however, works:
modify( (MyClass)o) { setAttribute(true) }