{}
create the HashMap first with 0 entries
http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html
Objects are not primitive types and vice versa
Initialise ints as Integer first
new Integer(intValue);
Martin Gainty
__
Jogi és Bizalmassági ki
Hi,
if the empty() function is called for variable containing int[] it causes an
exception:
java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;
at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:715)
at
org.apache.commons.jexl2.parser.ASTEmptyFunct
Oliver,
Thanks for the information.
Is the expectation that commons-configuration will undergo the same sort of
change, where all the package names change to have "configuration2" like
what was done with "lang3"?
Tom
On Wed, Aug 8, 2012 at 3:38 PM, Oliver Heger
wrote:
> Hi Tom,
>
> Am 07.08.20
Hi,
but the 'int[]' is 'Object'
In Java it is found and invoked well:
Object par1 = "x = %s";
Object par2 = new int[]{ 1, 2 };
mNsUtil.log(par1, par2);
BTW I have already tried solution similar to your proposal below but it makes
jexl much more confused if the second parameter is Integer.
T
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) {
Syst
Hi,
the method log(Object fmt, Object... arr) acessible via namespace is not found
if it is called with (String, int[]) parameters.
All other types of parameters work well.
See the example below.
Best regards,
Tomas
-
public class Test03 {
private final static String NS_UTIL