Re: Sending java.lang.Integer as an argument to Java API

2010-09-09 Thread Patrick LeBoutillier
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

RE:'ICICICARE=039-104-224' Sending java.lang.Integer as an argument to Java API

2010-09-07 Thread PGHelpdesk
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

Sending java.lang.Integer as an argument to Java API

2010-09-07 Thread Siva Krishna Kumar Balijepalli
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