Comment: Re:object refcounting (Score 1) on 2010.04.22 10:27
I have never used static class variables in Java. They seem like a subtle disaster waiting to happen. Also I try (where possible) to program without side-effects.
Moreover, Java doesn't have proper destructors, so you can't decrease the count in any reasonable way.
Is there perhaps a more reasonable use case for a kind of object-level namespace? It would be horrible in practice, but something like public static HashMap MyBaseObject.OBJECT_VARIABLES...
Sounds like a guarantee of threading problems to me, though.