openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter" <>
Subject Why do we capture the call stack when close() is called?
Date Thu, 08 Feb 2007 23:26:53 GMT
I've noticed that we capture the current call stack (via an
IllegalStateException creation) when close() is invoked on the
AbstractBrokerFactory and when free() is invoked on BrokerImpl.  Then, if or
when assertOpen "fails" we include this exception (and call stack) as the
cause of a new IllegalStateException.  I suppose this can be useful for a
user that accidentally attempts to use a closed broker.  But, capturing this
information in "production" mode is kind of expensive.  Do we need this
processing at all?  If so, could we at least gate it's usage on a TRACE or
DEBUG setting?  Or, any other ideas?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message