-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement
Milestone
Description
Oliver Drotbohm opened SPR-11719 and commented
If running JDK 8 and the ClassPathScanningCandidateComponentProvider
encounters an annotation type during scanning (e.g. in Spring Data JPA where we explicitly scan for interfaces) it tries to read meta-data from java.lang.annotation.Annotation
. This type of course was compiled with -target 1.8 for JDK 8 and thus the ASM reader will choke on it. Even if ASM didn't, we shouldn't actually process JDK classes with the ASM reader as it can cause issues with the Security Manager.
Affects: 3.2.8, 4.0.3
Issue Links:
- Basic Java 8 bytecode compatibility for Spring 3.2.x through ASM 5.0.2 [SPR-11656] #16279 Basic Java 8 bytecode compatibility for Spring 3.2.x through ASM 5.0.2
- Allow AnnotationTypeFilter to consider interfaces as well [SPR-8336] #12984 Allow AnnotationTypeFilter to consider interfaces as well
- Fix/optimize handling of @Bean method override regression with return type narrowing on JDK 8 [SPR-11718] #16340 Fix/optimize handling of
@Bean
method override regression with return type narrowing on JDK 8 - Reduce ClassUtils.forName overhead (in particular for annotation introspection purposes) [SPR-16667] #21208 Reduce ClassUtils.forName overhead (in particular for annotation introspection purposes)
Referenced from: commits 5ab7076, 945335d, e379e77, 9c45755, 2c1203d
Backported to: 3.2.9
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement