|
From: Dmitriy K. <dko...@ru...> - 2004-05-04 14:58:59
|
I believe that the minimum JDK supported by Spring is 1.3 There are some Spring deployments (WebSphere 4 and 5 running 1.3 for instance)... Dmitriy. Les A. Hazlewood wrote: > Quoting Dmitriy Kopylenko <dko...@ru...>: > > >>I'm just wondering, would the use of WeakHashMap in >>CachedIntrospectionResults help? > > > I'm curious about CachedIntrospectionResults for another reason... > > What is the minimum JDK supported by Spring? > > If its JDK 1.4, I would argue that CachedIntrospectionResults is an unnecessary > class (and infact incurs additional runtime memory overhead). > > JDK 1.4 already caches its bean introspection results, including method and > property descriptors, and it does so using WeakHashMaps. So when you do a > lookup for a bean, it returns the previously cached info (otherwise it does the > introspection and then caches it). CachedIntrospectionResults more or less > duplicates what the 1.4 java.beans.Introspector already does. > > If the minimum JDK supported by Spring is < 1.4, I can understand keeping the > class, otherwise, wouldn't it be better to deprecate it? > > If so, it would be an easy fix, since CachedIntrospectionResults is only used in > o.s.beans.BeanWrapperImpl in two places to retrieve PropertyDescriptors. > > Any thoughts? > > Les > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |