<span>Added code examples...<br></span><b><span><br>Sample1:</span></b><br><pre><span>import namespace1.MyObject;

rule &quot;r&quot;
  when
    namespace2.MyObject( value == 3 )
    MyObject( attr1 == &quot;foo&quot; ) //Here, got a parsing error stating &quot;attr1&quot; is not a field because it looks it up from namespace2.MyObject
  then
    // ...
end
</span></pre><br><b><span>Sample2:</span></b><br><pre><span>import namespace1.MyObject;

declare MyLocalType
  val: namespace2.MyObject
end

rule &quot;r1&quot;
  when
    MyObject( attr1 == &quot;foo&quot; ) //Here, got a parsing error stating &quot;attr1&quot; is not a field because it looks it up from namespace2.MyObject
  then
    MyLocalType $mlt = new MyLocalType();
    $mlt.setVal( new namespace2.MyObject() );
    insert( $mlt );
end
</span></pre><br><b><span>Sample3 (continues Sample2 as the following is in the same DRL file):</span></b><br><pre><span>rule &quot;r2&quot;
  when
    MyObject()
//Here: there is no name conflict but, at execution time, the rule is not activated;
//fully qualifying the fact type solved the issue (meaning activation seems to wait for namespace2.MyObject to fire the rule...)
  then
    // ...
end
</span></pre><br><br><div class="gmail_quote">On 28 October 2011 13:34, abr <span dir="ltr">&lt;<a href="mailto:alexis.brouard@haulogy.net">alexis.brouard@haulogy.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I second that problem.<br>
<br>
Switching from Drools 5.1 to 5.2 or 5.3 brought issues that were resolved by<br>
fully qualifying fact names.<br>
<br>
Here are samples illustrating the problem:<br>
<br>
*Sample1:*<br>
<br>
<br>
*Sample2:*<br>
<br>
<br>
*Sample3 (continues Sample2 as the following is in the same DRL file):*<br>
<br>
<br>
Like thomas, adding namespace where there was a name conflict resolved the<br>
issues.<br>
However, something seem to go wrong when parsing and, sometimes, executing.<br>
<br>
Alexis<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Regression-5-1-5-2-with-conflicting-ClassNames-tp3268164p3460816.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Regression-5-1-5-2-with-conflicting-ClassNames-tp3268164p3460816.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>