From owner-freebsd-java@FreeBSD.ORG Sat Aug 6 06:29:17 2005 Return-Path: X-Original-To: java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F21BA16A420 for ; Sat, 6 Aug 2005 06:29:16 +0000 (GMT) (envelope-from mi@blue.virtual-estates.net) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2456143D48 for ; Sat, 6 Aug 2005 06:29:16 +0000 (GMT) (envelope-from mi@blue.virtual-estates.net) Received: (qmail 22153 invoked from network); 6 Aug 2005 06:29:15 -0000 Received: from aldan.algebra.com (HELO blue.virtual-estates.net) ([216.254.65.224]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 6 Aug 2005 06:29:15 -0000 Received: from blue.virtual-estates.net (blue [127.0.0.1]) by blue.virtual-estates.net (8.13.3/8.13.3) with ESMTP id j766TDnZ048418; Sat, 6 Aug 2005 02:29:13 -0400 (EDT) (envelope-from mi@blue.virtual-estates.net) Received: (from mi@localhost) by blue.virtual-estates.net (8.13.3/8.13.3/Submit) id j766TDiU048417; Sat, 6 Aug 2005 02:29:13 -0400 (EDT) (envelope-from mi) From: "Mikhail T." Message-Id: <200508060629.j766TDiU048417@blue.virtual-estates.net> To: java@FreeBSD.org, glewis@FreeBSD.org, phantom@FreeBSD.org Date: Sat, 6 Aug 2005 02:29:13 -0400 (EDT) X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7w hJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Aug 2005 06:29:17 -0000 More specifically, the LiveConnect part of Mozilla family of browsers is using Java's GetJavaWrapper() and UnwrapJavaWrapper() functions to store _pointers_ to the JavaScript objects -- see comments in work/mozilla/js/src/liveconnect/jsjava.h as extracted by firefox or mozilla ports. These pointers are presumed to be as wide as jint -- see calls to get_java_wrapper() in work/mozilla/js/src/liveconnect/jsj_JSObject.c Currently, the only Java (sort of) available for amd64 is jdk15, which does not build the browser plugin for some reason anyway :-( However, I hope, this will some day be fixed and the browsers better be ready. Defining jint as intptr_t just for this purpose is, probably, wasteful. Instead, the GetJavaWrapper() and UnwrapJavaWrapper() functions should, probably, be modified to accept either a jlong (a warning-triggering overkill on i386) or a true intptr_t. Any comments? -mi