Eric,<br><br> Not sure if I understood your problem, but if you have multiple classes with the same name, and the only difference is that they are inner classes of different classes, I guess what you need to do is to fully qualify your class names in your rules...
<br><br>rule xxx<br>when<br> my.package.MyClass.MyInnerClass( ... )<br>...<br>end<br><br> If this is not your problem, can you please show us an example so we understand it better?<br><br> Edson<br><br><br><div><span class="gmail_quote">
2007/7/25, Eric Miles <<a href="mailto:eric.miles@kronos.com">eric.miles@kronos.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
Due to how JAXB treats anonymous inner complex types, I ended up with a public static inner classes named AlternativeKey in several of my data classes I have several rules written to deal with each data class individually that all work ok. However, when I attempt to put them all in the same rule base (all belong to the same package), I get an import collision exception on the AlternativeKey inner class. Depending on where in the builder I add the resource depends on which AlternativeKey the compiler bitches about (validity). I'm not familiar with the source at all, so I'm unsure as to where to look for this. However, this sounds like a bug to me? There is an easy workaround for this as I I just don't use anonymous types and define them in my schema explicitly. Just thought I'd identify this as a possible issue.
<br>
<br>
Thanks,<br>
Eric
</div>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646
<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>