Class org.springframework.aop.aspectj.OverloadedAdviceTests

2

tests

0

failures

0

ignored

0.083s

duration

100%

successful

Tests

Test Duration Result
testExceptionOnConfigParsingWithAmbiguousAdviceMethod 0.017s passed
testExceptionOnConfigParsingWithMismatchedAdviceMethod 0.066s passed

Standard output

16:45:07.276 [Test worker] WARN  org.springframework.context.support.ClassPathXmlApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#1': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: warning no match for this type name: name [Xlint:invalidAbsoluteTypeName]
16:45:07.303 [Test worker] WARN  org.springframework.context.support.ClassPathXmlApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot create inner bean '(inner bean)#61959c03' of type [org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#61959c03': Cannot create inner bean '(inner bean)#1ac4c347' of type [org.springframework.aop.config.MethodLocatingFactoryBean] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1ac4c347': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Cannot resolve method 'myBeforeAdvice' to a unique method. Attempted to resolve to overloaded method with the least number of parameters but there were 2 candidates.