bug-jel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-jel] Methods with Variable Number Of Arguments not supported in ver


From: naresh . yadav
Subject: [Bug-jel] Methods with Variable Number Of Arguments not supported in version jel-0.9.11
Date: Tue, 6 Jun 2006 11:05:37 -0400
User-agent: Internet Messaging Program (IMP) H3 (4.0.3)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]