Mikhail Dobrinin opened SPR-15278 and commented

Currently there doesn't appear to be any good way to set the the cache limit (CachingMetadataReaderFactory.setCacheLimit(int)). For example you can't set this limit through AnnotationConfigApplicationContext since the scanner field doesn't have a setter and more importantly is final. This could be a potential setting for certain applications to improve their performance.


Affects: 4.2.9

Issue Links: - #19219 Cache ASM metadata at the context level

Comment From: jhoeller

Effectively superseded by the specifically managed context-level cache in #19219: for AnnotationConfigApplicationContext usage, a locally configured cache limit will not be used anymore to begin with.