Hello all,
On Wed, Jan 7, 2009 at 4:39 AM, Albert Strasheim <full...@gmail.com> wrote:
On Tue, Jan 6, 2009 at 10:38 PM, Albert Strasheim <full...@gmail.com> wrote:
On Tue, Jan 6, 2009 at 10:29 PM, Timothy Wall <twal...@dev.java.net> wrote:
Why do you need to manipulate the peer value?
As the comment in Pointer says,
The constructors are intentionally package-private, since it's not
generally a good idea to be creating C pointers de novo.
I completely agree with that, but in the special case where someone
wants to implement a class like Memory, relaxing this package-private
to protected seems reasonable (to me at least).
I also suggest making malloc and free in Memory public, to allow them
to be reused from other classes.
Does anybody have any comments about this? I would like to go ahead
with my implementation of another class like Memory, but it would be
nice if it could be done without us having to maintain a "local"
change to JNA in the long term.
Regards,
Albert