IllegalAccessError with a dynamic proxy ---------------------------------------
Key: MSUREFIRE-100 URL: http://jira.codehaus.org/browse/MSUREFIRE-100 Project: Maven 2.x Surefire Plugin Type: Bug Versions: 2.2 Reporter: Carlos Sanchez Fix For: 2.2 I found this regression in the code from the book, migration chapter, when using 2.2-SNAPSHOT instead of 2.1.3 ------------------------------------------------------------------------------- Test set: org.springframework.aop.support.DelegatingIntroductionInterceptorTests ------------------------------------------------------------------------------- Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.141 sec <<< FAILURE! testIntroductionInterceptorWithInterfaceHierarchy(org.springframework.aop.support.DelegatingIntroductionInterceptorTests) Time elapsed: 0 sec <<< ERROR! java.lang.IllegalAccessError: class org.springframework.aop.support.$Proxy9 cannot access its superinterface org.springframework.aop.support.DelegatingIntroductionInterceptorTests$SubTimeStamped at java.lang.reflect.Proxy.defineClass0(Native Method) at java.lang.reflect.Proxy.getProxyClass(Unknown Source) at java.lang.reflect.Proxy.newProxyInstance(Unknown Source) at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:104) at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:94) at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:70) at org.springframework.aop.support.DelegatingIntroductionInterceptorTests.testIntroductionInterceptorWithInterfaceHierarchy(DelegatingIntroductionInterceptorTests.java:88) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira