Hi!

The code below throws exception

======================
use strict;
use Inline( JAVA => 'STUDY',
            STUDY => ['java.lang.Double'],
#           DEBUG => 1,
              );

my $pk = new java::lang::Double('8.4');         # here ok
print $pk,"\n";                                 # here ok
my $i = $pk->toString();                                # here exception 
happens!

======================
output:

main::java::lang::Double=HASH(0x466ac0)

Exception in thread "main" java.lang.NumberFormatException: 
java.lang.Double
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.<init>(Throwable.java:94)
        at java.lang.Exception.<init>(Exception.java:42)
        at java.lang.RuntimeException.<init>(RuntimeException.java:47)
        at 
java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:43)
        at 
java.lang.NumberFormatException.<init>(NumberFormatException.java:43)
        at java.lang.Integer.parseInt(Compiled Code)
        at java.lang.Integer.parseInt(Compiled Code)
        at 
InlineJavaServer$InlineJavaProtocol.CallJavaMethod(InlineJavaServer.java:852)
        at 
InlineJavaServer$InlineJavaProtocol.Do(InlineJavaServer.java:695)
        at InlineJavaServer.ProcessCommand(InlineJavaServer.java:62)
        at InlineJavaServer.<init>(Compiled Code)
        at InlineJavaServer.main(InlineJavaServer.java:115)
Can't receive packet from JVM:  at 
/home/maria/perl/lib/perl5/site_perl/5.6.0/Inline/Java/Protocol.pm line 
251
 at a.pl line 9
======================
Why?
Bug?
Thank you

Masha
_____________________________________________
Maria Ananieva                               Software-Entwicklung
uni-X Software AG
Mindener Strasse 127                     49084 Osnabrueck
Tel. +49-541- 71008-433                Fax +49-541-71008-99
http://www.uni-X.com  [EMAIL PROTECTED]

Reply via email to