[ 
https://issues.apache.org/jira/browse/WICKET-4918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528205#comment-13528205
 ] 

Stephen Lujan commented on WICKET-4918:
---------------------------------------

I confirmed that this works with just google guice but not wicket-guice, by 
replacing "Injector.get().inject(this);" with 
"Guice.createInjector().injectMembers(this);" in the net.korri.model.Model 
constructor.
                
> LazyInitProxyFactory prevents using package private interfaces
> --------------------------------------------------------------
>
>                 Key: WICKET-4918
>                 URL: https://issues.apache.org/jira/browse/WICKET-4918
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-guice
>    Affects Versions: 6.3.0
>            Reporter: Taneli Korri
>         Attachments: guice-proxytest.zip
>
>
> I'm trying to inject a package private interface for my model classes but I 
> keep getting a java.lang.IllegalArgumentException: non-public interfaces from 
> different packages.
> I'm guessing the LazyInitProxyFactory adding IWriteReplace to the proxies is 
> the culprit here, since IWriteReplace is also an package private interface in 
> the org.apache.wicket.proxy package.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to