Subject Re: Should (Could) FBStatements be held in WeakHashMap
Author Roman Rokytskyy
Mark,

> If you do not get resource leaks on server, then I think we can commit
> your change. Sorry for arguing so long... Also I'm not convinced that
> this is 100% correct, but we can try.

There is at least one issue on which I have no answer. In API you can
find "The Java programming language does not guarantee which thread
will invoke the finalize method for any given object.", and this might
cause some problems. Right now access to FBConnection is not
threadsafe (and is not planned to be, this, afaik, is not required by
specs). Also it might have some side effects on JTA implementation...

Sorry, I'm afraid to make this change.

Roman