dynamic library cost (was RE: libtool, java woes)

Cedric Berger cedric@wireless-networks.com
Fri Apr 13 08:44:00 GMT 2001


"Jonathan P. Olson" wrote:
> Even in Java, it's often not possible. Consider how Java AWT
> implementations
> typically store native peer objects in `long' variables. Yeah, this is
> totally evil but unfortunately Java doesn't provide any way to declare
> `native' object references.

Ok, I've done that a lot (storing native peer objects in `long' variables)
but then I write a finalizer to free() the memory explicitely.
(this is one of the very common use of finalizers)
Cedric


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /