NamespaceImpl.clearContains()
"John V. Sichi" <[email protected]> Sat, 27 Nov 2004 03:11:31 -0800
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
The class org.netbeans.jmiimpl.mof.model.NamespaceImpl has a static HashMap member named contains. This causes problems when a repository is loaded, shut down, and then reloaded, because the original Storage object is still lingering in this map after it has already been shut down. The next attempt to use it (e.g. parsing an XMI file) causes weird symptoms (invalid file handle in the btree case; connection already closed in the JDBC case). I have added a public static member clearContains() to address this. Currently I'm calling it explicitly from my application's code to solve the reload problem. Could someone who knows better figure out where the right place is to call this automatically? Thanks, JVS