commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henrib <hen...@apache.org>
Subject Re: [jexl] mathod within namespace not found if parameter is int[]
Date Fri, 10 Aug 2012 11:28:15 GMT
Hi Tomas,
An 'int[]' is not an 'Object[]', a solution could be:

    public static class ScriptUtil {
        public void log(Object fmt, Object... arr) {
            System.out.println(String.format(fmt.toString(), arr));
        }
        public void log(Object fmt, int... arr) {
            System.out.println(String.format(fmt.toString(), arr));
        }
    }

Cheers




--
View this message in context: http://apache-commons.680414.n4.nabble.com/jexl-mathod-within-namespace-not-found-if-parameter-is-int-tp4637888p4637892.html
Sent from the Commons - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message