[rules-dev] Cast-away bug
Edson Tirelli
ed.tirelli at gmail.com
Wed Aug 31 21:44:21 EDT 2011
> Explanation?
It was a feature to check if anyone would try that... ;)
https://issues.jboss.org/browse/JBRULES-3193
Feature removed...
Thanks for reporting, let me know if you still see any problem.
Edson
2011/8/31 Wolfgang Laun <wolfgang.laun at gmail.com>
> This rule
>
> 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) }
>
> Explanation?
> -W
>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20110831/b2bffd36/attachment.html
More information about the rules-dev
mailing list