Details
Description
Take the StatelessActorTest.java, and add a stop() to the onMessage(), add an afterStop() handler as well.
The following exception is seen...
An exception occurred in the Actor thread Actor Thread 2
java.lang.ArrayIndexOutOfBoundsException: 0
at org.codehaus.groovy.reflection.ParameterTypes.coerceArgumentsToClasses(ParameterTypes.java:138)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:231)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:781)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:772)
at groovyx.gpars.actor.Actor.callDynamic(Actor.java:345)
at groovyx.gpars.actor.Actor.handleTermination(Actor.java:301)
at groovyx.gpars.actor.AbstractLoopingActor$1.handleMessage(AbstractLoopingActor.java:86)
at groovyx.gpars.util.AsyncMessagingCore.run(AsyncMessagingCore.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
This also happens in 1.0.0-snapshot