Will result in null despite the fact that Transactional is meta-annotated with InterceptorBinding.
The root cause appears to be AnnotationUtils.hasPlainJavaAnnotationsOnly which does name.startsWith("java") and perhaps should do name.startsWith("java.").
Not loading javax types appears to be intentional and changing the logic is likely to degrade performance. Since we've added a guard in the Spring Boot code, I think we should close this one for now.
Phil Webb opened SPR-17495 and commented
Given a class
Foo
annotated withjavax.transaction.Transactional
calling:Will result in
null
despite the fact thatTransactional
is meta-annotated withInterceptorBinding
.The root cause appears to be
AnnotationUtils.hasPlainJavaAnnotationsOnly
which doesname.startsWith("java")
and perhaps should doname.startsWith("java.")
.spring-framework/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
Line 953 in b960368
Reference URL: spring-projects/spring-boot#15175
Referenced from: commits spring-projects/spring-boot@79b5dd3
The text was updated successfully, but these errors were encountered: