Community
Participate
Working Groups
See https://jira.springsource.org/browse/SPR-5307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47131#action_47131 Due to the resolution strategy within Spring, the annotation type pattern is not resolved correctly.
PointcutParser.parseTypePattern() is used by Spring and that is where resolution is kicked off. There is no context there unfortunately (apart from the world) so we don't know where the type pattern came from - this makes it impossible to determine imports that would be respected for non-fully qualified names. Right now resolve() for WildAnnotationTypePattern doesn't do anything where resolveBindings() does lots. resolveBindings() is context aware. We can do something in resolve() though if it looks like a fully qualified name. We can see if it is a dotted name and then attempt world resolution for the name. If that succeeds we can transform the internal type pattern into an ExactTypePattern.
changes committed
forgot to resolve fixed!