From owner-freebsd-hackers Wed Jan 7 13:47:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA14796 for hackers-outgoing; Wed, 7 Jan 1998 13:47:40 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA14772 for ; Wed, 7 Jan 1998 13:47:29 -0800 (PST) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id OAA28396; Wed, 7 Jan 1998 14:47:29 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp01.primenet.com, id smtpd028377; Wed Jan 7 14:47:27 1998 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id OAA10235; Wed, 7 Jan 1998 14:47:26 -0700 (MST) From: Terry Lambert Message-Id: <199801072147.OAA10235@usr06.primenet.com> Subject: Re: Motif question To: dap@damon.com (Damon Anton Permezel) Date: Wed, 7 Jan 1998 21:47:25 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <199801062344.RAA09428@damon.com> from "Damon Anton Permezel" at Jan 6, 98 05:44:12 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > From the java:awt_util.c source, it thinks the struct, which hangs off a > vendor specific field in the widget struct > > ve = (XmVendorShellExtObject) extData->widget; > if ((im_info = (XmImInfo *) ve->vendor.im_info) == NULL) > return NULL; > else > return im_info->iclist; This is actually an error in the java:awt_util.c source. This is an opaque strucutre, and therefore Java is not allowed to look in it, or it becomes implementation dependent. moxFTP does the same type of crap with internal fontlists for a widget subclasssed (improperly, IMO) off a text input box instead of off of a File Selector or something else, making it a badly behaved application as well. > It picks up the `iclist', (random garbage) and faults. > > Obviously, the java:awt port for FreeBSD based on lesstif-0.81 should be > modified, but I would appreciate if anyone could provide me any pointers > so I could have the faintest idea as to what the hell is going on here. > I really don't want to have to live-and-breathe Motif, but I would like a > glimmer of understanding as to the issues here. This is an icon manager icon list. It assumes you can reparent the management of icons by the icon manager. I'd be interested in what the heck JAVA thinks it's doing here. Whatever it's doing... it's wrong to be doing the way it is doing it. The "correct" way would probably be to subclass, or, more likely, rewrite the widget whose internals it's trying to peek into. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.