Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "EL CHAAR Rabih   SGAM/AI/SAM" <RABIH.ELCHAAR@sgam.com>
To: <Xavier.Leroy@inria.fr>
Cc: <caml-list@inria.fr>
Subject: Error in camljava library when accessing a double field
Date: Wed, 19 Oct 2005 21:12:32 +0200	[thread overview]
Message-ID: <7F070E410B10EE419826BF5206322CC20950DC@frdef-exmb01.europe.am.socgen> (raw)

[-- Attachment #1: Type: text/plain, Size: 1805 bytes --]

Hello,
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
 
Rabih
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses
destinataires.
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 www.sgam.fr 

                                ********

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
falsified. 

*************************************************************************

[-- Attachment #2: Type: text/html, Size: 2845 bytes --]

                 reply	other threads:[~2005-10-19 19:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7F070E410B10EE419826BF5206322CC20950DC@frdef-exmb01.europe.am.socgen \
    --to=rabih.elchaar@sgam.com \
    --cc=Xavier.Leroy@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox