15 messages in net.java.dev.jna.usersRe: [jna-users] Override Pointer.fina...
FromSent OnAttachments
bb...@cox.netJun 26, 2007 9:11 am 
Timothy WallJun 26, 2007 12:52 pm 
Wayne MeissnerJun 26, 2007 7:43 pm 
Ben ChaseJun 26, 2007 8:39 pm 
Wayne MeissnerJun 26, 2007 10:33 pm 
Timothy WallJun 27, 2007 5:08 am 
Timothy WallJun 27, 2007 5:20 am 
Rick GoldsteinJun 27, 2007 8:50 am 
Timothy WallJun 27, 2007 9:59 am 
Ben ChaseJun 27, 2007 7:26 pm 
Timothy WallJun 28, 2007 3:56 am 
bb...@cox.netJun 28, 2007 4:43 am 
bb...@cox.netJun 28, 2007 5:37 am 
bb...@cox.netJun 28, 2007 6:18 am 
Wayne MeissnerJun 28, 2007 7:41 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Override Pointer.finalize to reclaim Native resources?Actions...
From:bb...@cox.net (bb@cox.net)
Date:Jun 28, 2007 4:43:28 am
List:net.java.dev.jna.users

---- Timothy Wall <twal@dev.java.net> wrote:

On Jun 27, 2007, at 10:27 PM, Ben Chase wrote:

On Jun 27, 2007, at 8:21 AM, Timothy Wall wrote:

The current state of member/class access is not written in stone, but mostly as restrictive as possible to communicate to the user which classes they really need to be looking at. We're trying to drive the API by actual usage, which unfortunately is limited right now to Wayne's gstreamer work and my various experiments with various w32 and X11 APIs.

Uhhhh, I'm actually using JNA, mostly starting within the past week. Mistake? Hope not. So far it looks good.

I don't mean to imply no one else is using it. I just mean that no one else has (yet) participated in a discussion of how best to represent usage XYZ, or provided much feedback after getting suggestions on how to approach a particular mapping.

Okay...,

I now have lots of code that looks like public class Image { Pointer jnaPointer; public Pointer getPointer() { return jnaPointer; } ... // Methods actually relevant to an Image }

So, maybe JNA should provide this base class: public class WrappedPointer { Pointer jnaPointer; public Pointer getPointer() { return jnaPointer; } }

and then I would have instead written public class Image extends WrapperPointer { ... // Methods actually relevant to an Image }

? (I haven't thought too hard about the public/private/protected decls on the
above.) If JNA provides methods which expect WrapperPointers (in addition to the ones
that expect Pointers, I guess), does that help, or does it just make JNA more
baroque?