Quoting Johannes Stezenbach ([EMAIL PROTECTED]):
> On Sun, Oct 27, 2002 at 01:37:49AM +0100, Richard Drummond wrote:
> >
> > I've just taken a look at the kawt code from the DirectFB CVS, and it seems to
> > me that you are just assuming native pointers are always 32 bits. For
> > example:
> >
> > void
> > Java_java_awt_Toolkit_wndToBack ( JNIEnv* env, jclass clazz, jint nativeHandle
> > )
> > {
> > IDirectFBWindow *wnd = (IDirectFBWindow*) nativeHandle;
> > DEBUGMSG(__FUNCTION__"\n");
> >
> > wnd->LowerToBottom( wnd );
> > }
> >
> > Since a jint is always 32 bits, this will only work on 32-bit platforms.
> > Right? Or am I missing something?
>
> I don't know how this is handled in other JVMs, but Kaffe has a class
> kaffe.util.Ptr for the purpose of encapsulating native pointers.
Kaffe's JNI doesn't verify if the object reference returned by the native
code references a valid object. This dummy class solution doesn't work on
other VMs ;(
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
Convergence GmbH
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.