Closed charles-dyfis-net closed 10 years ago
On investigation, I understand why the obvious thing isn't possible (the Class object doesn't exist yet).
Closing until a more practical implementation can be determined.
This is a key problem with the design. I see a few options.
The second option might get more straightforward than one might otherwise expect if assuming some changes I'd potentially like to make for other reasons (adding shimple support via soot).
neat idea, one complication to think about, any classes not already in the JDK must be added to the JVM's bootclasspath via an uberjar, which means an extra build artifact and some more bits in the lein-plugin.
also, I think adding non-trivial finalizers to everything would be slow at both load-time and unload-time. This might need a flag of some sort.
Code associated with a class should be GCable after that class is no longer in memory.