我将我的Maven项目升级到了Spring 3.0.7(从3.0.5)。现在,我所有使用JUnit的测试都遇到了问题。
@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...