Unnecessary file system access in SimpleMetadataReaderFactory.getMetadataReader [SPR-16281] #20828
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Rex Hoffman opened SPR-16281 and commented
Instead of eagerly checking the file exists with "if (!resource.exists())" perhaps move the logic into the metadata reader only attempt the rewrite if the access has failed with the passed in name?
We can provide a patch if needed.
Affects: 4.3.6, 4.3.14
Reference URL: https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/core/type/classreading/SimpleMetadataReaderFactory.java#L80-L90
Issue Links:
Referenced from: commits 7ad69bf, 3368dca
Backported to: 4.3.14
The text was updated successfully, but these errors were encountered: