Thanks for the code. After replacing the GreatCircle.x calls with some expression, the function compiles on 5.1.1, 5.2.0 and the current HEAD developing towards 5.3.0.<br><br>Note that the error messages as you have posted them do not incriminate &quot;double&quot; as the faulty type name (as the compiler does when you use e.g. double2 instead).<br>
<br>-W<br><br><div class="gmail_quote">On 15 August 2011 09:51, 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;">
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 = 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 = GreatCircle.sphericalAzimuth(p1, l1, p2, l2);<br>
    double[] sb = GreatCircle.sphericalBetween(p1, l1, ds, 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>
<font color="#888888"><br>
<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-tp3251260p3255191.html" target="_blank">http://drools.46999.n3.nabble.com/Functions-with-array-parameters-double-cease-to-compile-in-5-2-0-tp3251260p3255191.html</a><br>

</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>