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

Niclas Hedhman commented on QI-258:
-----------------------------------

First; The above fail for any discrete with the same error, and if String it 
says "java.lang.String is not an interface".

So isn't it that declareDefaults() are for Property methods only??

What is the above supposed to mean otherwise?

> Invoking void method on (at least) Services from MixinDeclaration causes 
> exception to be thrown
> -----------------------------------------------------------------------------------------------
>
>                 Key: QI-258
>                 URL: http://issues.ops4j.org/browse/QI-258
>             Project: Qi4j
>          Issue Type: Bug
>          Components: Core Runtime
>    Affects Versions: 1.2
>         Environment: Any.
>            Reporter: Stanislav Muhametsin
>            Assignee: Rickard Öberg
>         Attachments: InvokeServiceFromModuleAssemblyTest.java
>
>
> Assuming we have {{ModuleAssembly module}} and a service of type 
> {{TestService}} with method {{void voidMethod()}}, the code
> {noformat}
> module.forMixin( TestService.class ).declareDefaults().voidMethod();
> {noformat}
> causes exception: {{java.lang.IllegalArgumentException: void is not visible 
> from class loader}}.
> Test case is attached.

-- 
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