Problem with interface inheritance on mixin interface
neil_g_avery Jun 8, 2005 4:11 PMHi Guys,
Im trying to create a mixin who's interface extends several other interfaces. The problem is that the mixin assembly blows up with the exception below. It exceptions when trying to process the first method of an inherited interface. The interface definition is of the nature,
public interface FuturesRegistryMixin extends FuturesRegistry, Future {
}
If my interface does not contain inheritance everything works correctly. I would prefer to not redefine those apis to flatten out the definition.
Does anyone have any another suggestions?
Regards Neil.
java.lang.ExceptionInInitializerError at org.neo.swarm.interceptor.futures.FuturesTest.testStuff(FuturesTest.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194) Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: register at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:250) at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:321) at org.neo.swarm.interceptor.futures.SomeFuturedObject.<clinit>(SomeFuturedObject.java) ... 16 more Caused by: java.lang.NoSuchMethodException: register at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:261) at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:269) at org.jboss.aop.ClassAdvisor.populateMixinMethods(ClassAdvisor.java:332) at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:228) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:209) ... 18 more