[ 
http://issues.ops4j.org/browse/QI-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102#action_13102
 ] 

Niclas Hedhman commented on QI-228:
-----------------------------------

{code:java}
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
import org.qi4j.api.mixin.Mixins;
import org.qi4j.api.service.ServiceComposite;
import org.qi4j.bootstrap.AssemblyException;
import org.qi4j.bootstrap.ModuleAssembly;
import org.qi4j.test.AbstractQi4jTest;

public class Qi228Test
    extends AbstractQi4jTest
{
    public void assemble( ModuleAssembly module )
        throws AssemblyException
    {
        module.addServices( SomeLogicService.class );
    }

    @Test
    public void test1()
        throws Exception
    {
        SomeLogic service = (SomeLogic) serviceLocator.findService( 
SomeLogic.class ).get();
        service.getNumbers();
    }

    public interface SomeLogic
    {
        Collection<Integer> getNumbers();
    }

    public static class SomeLogicMixin
        implements SomeLogic
    {
        public List<Integer> getNumbers()
        {
            return Collections.emptyList();
        }
    }

    @Mixins( { SomeLogicMixin.class } )
    public interface SomeLogicService
        extends SomeLogic, ServiceComposite
    {
    }
}
{code}

> Stack Overflow in recursive calls.
> ----------------------------------
>
>                 Key: QI-228
>                 URL: http://issues.ops4j.org/browse/QI-228
>             Project: Qi4j
>          Issue Type: Bug
>          Components: Core Runtime
>            Reporter: Niclas Hedhman
>            Assignee: Rickard Öberg
>            Priority: Blocker
>
> A recursive invocation stack gets set up in the most simple of testcases.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to