openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevan Miller <kevan.mil...@gmail.com>
Subject Re: PCRegistry ClassLoader memory leak
Date Tue, 17 Jul 2007 02:22:19 GMT

On Jul 16, 2007, at 6:43 PM, Pinaki Poddar wrote:

> Meta.fieldTypes is declared as Class[].
> They are accessed via PCRegistry::getFieldTypes(Class pcClass).
>
> The suggestion of "Change fieldTypes to be Strings instead" *perhaps*
> meant to change Meta.fieldTypes to String[] (as field type names). And
> only during
> PCRegistry::getFieldTypes() 'lazily' converting the String[]s to
> Class[]es (by the same ClassLoader of the PersistenceCapable class?).

Right, you'll need a ClassLoader to load from. Defaulting the the CL  
of the PersistenceCapable class might work (for Geronimo), but  
doesn't seem right either...

--kevan

Mime
View raw message