Methods with Variable Number Of Arguments not supported in version jel-0.9.11
[email protected] Tue, 6 Jun 2006 11:05:37 -0400
| Newsgroups | gmane.comp.java.jel.bugs |
|---|---|
| Message-ID | <[email protected]> |
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