Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Error in camljava library when accessing a double field
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
Subject: Error in camljava library when accessing a double field
i've stumbled by chance when using the camljava library on the following problem :
accessing a double field inside an object was always returning 0. (in caml).
After some investigations, i came to the conclusion that this is due to the following error
the function definded in jni.mli lines114-115
external get_double_field: obj -> fieldID -> float

        = "camljava_GetFloatField"
it should be 

external get_double_field: obj -> fieldID -> float

        = "camljava_GetDoubleField
This solves the problem (changes to do in jni.mlp also).
Is it possible to correct this in the cvs version ?
This work should be done also to the set field, and the setter and getter for static fields (line 135, line 157 and line 178).
Thanks in advance
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
SG Asset Management et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.

Decouvrez l'offre et les services de SG Asset Management sur le site 


This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration. 
Neither SG Asset Management nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or