>Is there any way to detect when a class is going to be unloaded from the
vm....
>sort of the opposite of static { ... }?
>
>--jason

In theory or in practice?

In theory the JLS says so, put a static method finalize() in the class
(sorry, don't remember the protection, maybe public??) and the VM is
supposed to call the method before unloading the class.

In practice . . . well, even Sun never bothered to implement it, and
I doubt the JCK checks for it either. IIRC someone posted a quote from
bugParade re this; check the archives if you're interested or search
for finalization in bugParade.

There was also a suggestion to strike that requirement from the JLS,
hopefully this was given some serious thought before being accepted!

To keep this Java && Linux, are the Blackdowner's considering doing
more than just porting? Not to imply that porting isn't a major
undertaking in and of itself. But are any of you working on enhancements
or bugfixes as well? -=Chris

<*> cabbey at rconnect dot com  http://homepage.rconnect.com/cabbey/ <*>
Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12 http://www.geekcode.com
GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL++++ UA++$ P++ L++ E- W++ N+ o? K? !P
w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
------END GEEK CODE BLOCK------

Reply via email to