I thought you might have - it&#39;s bound to be some freaky situation you must have run into. I suggest that you experiment a little.<br><br>Does this error happen when you have nothing but a function with this signature on a .drl file?<br>
<br>Does it also occur with some other simple type, or with a class?<br><br>Do you have any particular setup for the builder?<br><br>-W<br><br><br><br><div class="gmail_quote">On 15 August 2011 15:10, ru <span dir="ltr">&lt;<a href="mailto:sorokin@oogis.ru">sorokin@oogis.ru</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Alas, I have the same problem with this code:<br>
<br>
function ArrayList nextPoint( int N, int t1, int sec, double[] a, double v )<br>
{ int Nxt = N+1;<br>
int Nxt2 = Nxt * 2;<br>
if(Nxt2 &gt;= a.length-1)<br>
    return null;<br>
int N2 = N * 2;<br>
double p1 = a[N2];<br>
double l1 = a[N2+1];<br>
double p2 = a[Nxt2];<br>
double l2 = a[Nxt2+1];<br>
double D = 1.0; // GreatCircle.sphericalDistance(p1, l1, p2, l2);<br>
int dt = sec - t1;<br>
double ds = dt * v;<br>
if(ds &gt; D){<br>
    int t2 = (int) (t1 + D / v);<br>
    return nextPoint(Nxt, t2, sec, a, v);<br>
} else {<br>
    double az = 1.0; //GreatCircle.sphericalAzimuth(p1, l1, p2, l2);<br>
    double[] sb = new double[1]; //GreatCircle.sphericalBetween(p1, l1, ds,<br>
az, 1);<br>
    ArrayList al = new ArrayList();<br>
    al.add(N);<br>
    al.add(t1);<br>
    al.add(new double[]{sb[2], sb[3]});<br>
    al.add(az);<br>
    return al;<br>
} }<br>
<br>
Only when I remove brackets after &quot;double&quot; in the parameter list like this<br>
&quot;function ArrayList nextPoint( int N, int t1, int sec, double a, double v<br>
)&quot;, the error message &quot;unable to resolve type while building function&quot;<br>
disappear. I have downloaded  Drools distribution from this link<br>
<a href="http://download.jboss.org/drools/release/5.2.0.Final/drools-distribution-5.2.0.Final.zip" target="_blank">http://download.jboss.org/drools/release/5.2.0.Final/drools-distribution-5.2.0.Final.zip</a>.<br>
Same situation I have with 5.3.0 distribution.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Functions-with-array-parameters-double-cease-to-compile-in-5-2-0-tp3251260p3255704.html" target="_blank">http://drools.46999.n3.nabble.com/Functions-with-array-parameters-double-cease-to-compile-in-5-2-0-tp3251260p3255704.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>