On Mon, 22 Nov 1999, Vince Darley wrote:

> I've been using tcljava to wrap a nice gui around some java simulation code.
> I extract a bunch of data from the code and display it.  The problem is
> that, every now and again, the result of a simple call to a static method
> which returns a double:
> 
>     lappend productivity [java::call DataGather getAndMakeMean 14]

This sounds a lot like a problem people were having with Java long
values (64 bit ints). You might want to take a look at the class
src/tcljava/tcl/lang/JavaInvoke.java around line 819. The code
that converts Java values to Tcl values in located there. As far
as I know, Jacl and Tcl Blend should handle 64 bit double values
correctly, but there could be a bug in there. I have seen strange
return values like "1.#NAN" from the JVM before. I would be willing
to bet this is a JVM bug.

I hope that helps
Mo DeJong

> actually returns '1.#IO' which obviously causes a few problems....  I've
> tried to find where this weird conversion might be happening, but with no
> luck.  Unfortunately its not that easy to reproduce since it only happens
> after the code has been running for some time.
> 
> Any ideas?
> 
> Vince.



----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 

Reply via email to