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

Stephen Lujan edited comment on WICKET-4918 at 12/11/12 5:10 PM:
-----------------------------------------------------------------

Taneli Korri was correct. Making IWrireReplace public does solve the issue. 
I've added a patch just in case that's helpful.
                
      was (Author: stephenlujan):
    patch
                  
> 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: 
> 0001-fixed-WICKET-4918-by-making-IWriteReplace-public.patch, 
> 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