Hi,
If the function prototype expects java.lang.Integer, Inline::Java will
box it for you:
use Inline Java => <<'END' ;
public class A {
public static int inc(Integer i) {
return i.intValue() + 1 ;
}
}
END
print A->inc(5), "\n" ;
This will print 6.
Patrick
On Tue, Se
2 30437845.
-Original Message-
From: Siva Krishna Kumar Balijepalli ([email protected])
Date: Tuesday, September 07, 2010 01:59 PM
To: [email protected] ([email protected])
Cc: [email protected] ([email protected])
Subject: Sending java.lang.Integer as an argument to Java API
Hi,
A method of the Java API
Hi,
A method of the Java API that I am using in my project requires
java.lang.Integer to be passed as an argument. As Inline::Java converts
java.lang.Integer into Perl SCALAR, API is throwing
IllegalArgumentException.
Is there a way, where in I can pass java.lan.Integer object as is,
Inline::Java