Same thing. Need a Exception, so I can tell whether I need to bother
with the testcase.

Cheers
Niclas

On Mon, May 5, 2008 at 8:25 PM, Sonny Gill (JIRA) <[EMAIL PROTECTED]> wrote:
> ArrayIndexOutOfBounds exception on adding a class with @Uses annotation to 
> the module
>  
> -------------------------------------------------------------------------------------
>
>                  Key: QI-55
>                  URL: http://issues.ops4j.org/jira/browse/QI-55
>              Project: Qi4j
>           Issue Type: Bug
>           Components: Core Runtime
>     Affects Versions: 0.2
>             Reporter: Sonny Gill
>             Assignee: Rickard Öberg
>
>
>  Test case -
>
>
>  
> ------------------------------------------------------------------------------------------------------------
>
>  import org.qi4j.bootstrap.ApplicationFactory;
>  import org.qi4j.bootstrap.AssemblyException;
>  import org.qi4j.bootstrap.ModuleAssembly;
>  import org.qi4j.bootstrap.SingletonAssembler;
>  import org.qi4j.runtime.structure.ApplicationInstance;
>
>  public class TestCase
>  {
>
>     public TestCase() throws Exception
>     {
>         SingletonAssembler assembler = new SingletonAssembler()
>         {
>             public void assemble( ModuleAssembly module ) throws 
> AssemblyException
>             {
>                 module.addObjects( TestCase.class, AClass.class );
>             }
>         };
>
>         final ApplicationInstance application = new 
> ApplicationFactory().newApplication(assembler).
>             newApplicationInstance( "Test" );
>
>         application.activate();
>
>     }
>
>     public static void main( String[] args ) throws Exception
>     {
>         new TestCase();
>     }
>
>  }
>
>
>  
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>
>  import org.qi4j.composite.scope.Uses;
>
>  public class AClass<T>
>  {
>
>     public AClass( @Uses T t )
>     {
>         System.out.println( "Using - " + t );
>     }
>
>  }
>
>
>
>  --
>  This message is automatically generated by JIRA.
>  -
>  If you think it was sent incorrectly contact one of the administrators: 
> http://issues.ops4j.org/jira/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
>

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

Reply via email to