<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>I had the same strange problem some time ago (last winter), but I never managed to reproduce a small sample....<br>I checked, and my problematic class hierarchy also lived in different packages (and never tried that that for my smaller samples).<br><br><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"Joerg Henne" &lt;hennejg+nabble@googlemail.com&gt;<br><b>À: </b>rules-users@lists.jboss.org<br><b>Envoyé: </b>Lundi 30 Juillet 2012 16:04:50<br><b>Objet: </b>Re: [rules-users] Apply role to whole class hierarchy<br><br>After some debugging I was able to shed some light on what causes the<br>problem, even if I don't fully understand it. The problem is produced by the<br>event base class, which is declared with @role(event), i.e. (VSCPEvent)<br>living in a different package than the ButtonEvent. If I move then into the<br>same package, everything works just fine.<br>The two package instances are merged in PackageBuilder.mergePackage(...),<br>but the RuleBuilder still seems to operate on two separate instances, one<br>with the declarations and Package.isEvent(...) returning true for the<br>ButtonEvent and the other without them. Unfortunately, as I know too little<br>about the workings of the various builders, I can't provide you with a<br>ready-made idea of how to fix the problem.<br><br>See https://issues.jboss.org/browse/JBRULES-3587<br><br>Thanks<br>Joerg<br><br><br><br>--<br>View this message in context: http://drools.46999.n3.nabble.com/Apply-role-to-whole-class-hierarchy-tp4018930p4018963.html<br>Sent from the Drools: User forum mailing list archive at Nabble.com.<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div><br></div></body></html>