[
https://issues.apache.org/jira/browse/DERBY-6878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15209955#comment-15209955
]
martin stanik commented on DERBY-6878:
--------------------------------------
originally, i found it in
https://db.apache.org/derby/docs/10.0/manuals/develop/develop12.html
however, google provided more links:
https://db.apache.org/derby/docs/10.4/devguide/rdevcsecure26537.html
http://db.apache.org/derby/docs/10.4/devguide/tdevdvlp20349
https://db.apache.org/derby/docs/10.4/devguide/derbydev.pdf
https://db.apache.org/derby/docs/10.1/devguide/derbydev.pdf
https://db.apache.org/derby/docs/10.1/devguide/tdevdvlp20349.html
i see this are all links related to 10.1 and 10.4.
the problem was then fixed by https://issues.apache.org/jira/browse/DERBY-3585
> unload EmbeddedDriver by using System.gc()?
> -------------------------------------------
>
> Key: DERBY-6878
> URL: https://issues.apache.org/jira/browse/DERBY-6878
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Reporter: martin stanik
> Priority: Minor
> Labels: easyfix
>
> derby development doc suggests one can 'unload driver class':
> > You cannot explicitly request that the JVM unload a class, but you can
> > ensure that the EmbeddedDriver class is unloaded by using a System.gc() ....
> this advice is unfortunate, because:
> 1. it is wrong - one can not unload single class.
> only whole classloader with all it's classes might be unloaded (this
> needs be organized ahead)
> 2. one may get false impression unloading driver is good
> practice/desirable/necessary.
> i believe it is not.
> i suggest to remove the advice unless there is provided a scenario when
> unloading driver is needed + explanation how to do it properly (derby driver
> needs be loaded into extra classloader).
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)