On Monday 15 December 2003 23:44, Leo Sutic wrote: > I agree - you can use the GC to catch user errors: I once did a > stack snapshot (created an Exception) when a component was lookup():ed. > When the component was released, I cleared the snapshot. When the > component > was finalized it would check for the Exception - if found, it would > scream at the console / user (in effect):
However :o( Need to resort to BCEL or something to rip away the finalize() method, which according to JLS and JVM docs are expensive (not as expensive as stack trace though)... Niclas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
