我升级了我的 Maven 项目以使用 Spring 3.0.7(来自 3.0.5)。现在,我所有使用
@RunWith(SpringJUnit4ClassRunner.class)
注释失败(以下例外),但仅在从 Eclipse 中运行时。我正在运行“Eclipse Indigo Service Release 2”。当我从 linux 控制台运行时,一切都会过去。
有人遇到过这个吗?
java.lang.NoSuchMethodError: org.springframework.core.BridgeMethodResolver.isVisibilityBridgeMethodPair(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)Z
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.buildAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:346)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:317)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(AutowiredAnnotationBeanPostProcessor.java:216)
at
etc & so forth...