You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Marcel Reutegger <ma...@gmx.net> on 2009/10/27 16:46:40 UTC
Re: svn commit: r829798 - in /jackrabbit/trunk/jackrabbit-core/src:
main/java/org/apache/jackrabbit/core/ main/java/org/apache/jackrabbit/core/config/
main/java/org/apache/jackrabbit/core/security/authorization/
main/java/org/apache/jackrabbit/core/s
Hi,
On Mon, Oct 26, 2009 at 14:48, <ju...@apache.org> wrote:
> Use the standard java.beans classes instead of BeanMap for the configured bean properties.
the use of java.beans can cause quite some trouble. the basic problem
is the cache inside Introspector, which holds a combination of weak
and soft references to classes that may not be freed up anymore, even
though it's supposed to do so. A common and documented workaround is
to call Introspector.flushCaches().
I'm not sure if this is still an issue with current JDKs, but I think
we should avoid using Introspector when possible.
regards
marcel
Re: svn commit: r829798 - in /jackrabbit/trunk/jackrabbit-core/src:
main/java/org/apache/jackrabbit/core/ main/java/org/apache/jackrabbit/core/config/
main/java/org/apache/jackrabbit/core/security/authorization/
main/java/org/apache/jackrabbit/core/s
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Tue, Oct 27, 2009 at 4:46 PM, Marcel Reutegger
<ma...@gmx.net> wrote:
> On Mon, Oct 26, 2009 at 14:48, <ju...@apache.org> wrote:
>> Use the standard java.beans classes instead of BeanMap for the configured bean properties.
>
> the use of java.beans can cause quite some trouble. the basic problem
> is the cache inside Introspector, which holds a combination of weak
> and soft references to classes that may not be freed up anymore, even
> though it's supposed to do so. A common and documented workaround is
> to call Introspector.flushCaches().
>
> I'm not sure if this is still an issue with current JDKs, but I think
> we should avoid using Introspector when possible.
OK, that's a good point. I'll revise the code so we don't need to use
Introspector.
BR,
Jukka Zitting