6 Jun 17:05
Methods with Variable Number Of Arguments not supported in version jel-0.9.11
<naresh.yadav <at> metrixline.com>
2006-06-06 15:05:37 GMT
2006-06-06 15:05:37 GMT
hi,
I am using JDK 1.5 new feature to define methods taking any number of
arguments Method i had defined is :>
public long sum(long... args) {
long sum = 0 ;
for(long arg : args) {
sum = sum + arg;
}
return sum;
}
using in expression as :>
Evaluator.compile("sum(1,2)",lib);
Getting following error :>
Exception in thread "main" gnu.jel.CompilationException: Function "sum" exists
but parameters "sum(byte,byte)" can not be accepted by it.
I had tried with version jel-0.9.11. Please Help me i need this feature.
Thanks & Regards
Naresh Yadav
RSS Feed