[ 
https://issues.apache.org/jira/browse/JEXL-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17076258#comment-17076258
 ] 

Dmitri Blinov edited comment on JEXL-329 at 4/6/20, 11:42 AM:
--------------------------------------------------------------

We supply JexlUberspect with our classloader to be able to create our classes 
in the future, so its possible for a classloader not to have any instances of 
the classes for the moment, so to be softly referenced, but that doesn’t mean 
we are ready to throw it away, right? 



While I can somehow provide that my custom classloader is Hard-referenced from 
application to prevent its unloading, I dont understand what is the idea behind 
keeping classloader via softreference in uberpect? What is the use-case for it?


was (Author: dmitri_blinov):
We supply JexlUberspect with our classloader to be able to create our classes 
in the future, so its possible for a classloader not to have any instances of 
the classes for the moment, so to be softly referenced, but that doesn’t mean 
we are ready to throw it away, right? 

> Uberspect may loose its Classloader
> -----------------------------------
>
>                 Key: JEXL-329
>                 URL: https://issues.apache.org/jira/browse/JEXL-329
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Dmitri Blinov
>            Priority: Major
>
> In the current implementation Uberspect keeps references to its Introspector 
> and ClassLoader via SoftReference. This means that when memory is short it 
> can loose not only Introspector reference, which is OK, but also ClassLoader 
> that was specified for resolving constructors, which looks like a bug.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to