You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "S Mathez (Created) (JIRA)" <ji...@apache.org> on 2012/01/04 19:07:39 UTC
[jira] [Created] (WICKET-4324) [wicket-ioc] LazyInitProxyFactory
CGLIB proxies naming strategy may cause java.lang.IllegalAccessError
[wicket-ioc] LazyInitProxyFactory CGLIB proxies naming strategy may cause java.lang.IllegalAccessError
------------------------------------------------------------------------------------------------------
Key: WICKET-4324
URL: https://issues.apache.org/jira/browse/WICKET-4324
Project: Wicket
Issue Type: Bug
Components: wicket-spring
Reporter: S Mathez
A CGLib proxy created by LazyInitProxyFactory may cause java.lang.IllegalAccessError when the target class has "package-private" method.
I think the root cause of this problem is the choosen strategy for naming proxies (see WICKET-1162) : after adding "WICKET_" before the package name of the target class, the proxy becomes a member of a new package. (This behaviour is different as which is used by CGLib DefaultNamingPolicy).
Why not adding "_WICKET" *after* the name of the target class ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-4324) [wicket-ioc] LazyInitProxyFactory
CGLIB proxies naming strategy may cause java.lang.IllegalAccessError
Posted by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-4324.
-------------------------------------
Resolution: Cannot Reproduce
I just added package private methods locally to
org.apache.wicket.proxy.util.InterfaceObject
and
org.apache.wicket.proxy.util.ConcreteObject
and this didn't break org.apache.wicket.proxy.LazyInitProxyFactoryTest.
Please modify this test so that it breaks and attach the patch here. We will reopen the ticket.
> [wicket-ioc] LazyInitProxyFactory CGLIB proxies naming strategy may cause java.lang.IllegalAccessError
> ------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4324
> URL: https://issues.apache.org/jira/browse/WICKET-4324
> Project: Wicket
> Issue Type: Bug
> Components: wicket-spring
> Reporter: S Mathez
> Labels: proxy
>
> A CGLib proxy created by LazyInitProxyFactory may cause java.lang.IllegalAccessError when the target class has "package-private" method.
> I think the root cause of this problem is the choosen strategy for naming proxies (see WICKET-1162) : after adding "WICKET_" before the package name of the target class, the proxy becomes a member of a new package. (This behaviour is different as which is used by CGLib DefaultNamingPolicy).
> Why not adding "_WICKET" *after* the name of the target class ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-4324) [wicket-ioc] LazyInitProxyFactory
CGLIB proxies naming strategy may cause java.lang.IllegalAccessError
Posted by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-4324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181901#comment-13181901 ]
Martin Grigorov commented on WICKET-4324:
-----------------------------------------
Can you provide a quickstart application ?
Why prefixing (or suffixing) the class name would change the package ?!
> [wicket-ioc] LazyInitProxyFactory CGLIB proxies naming strategy may cause java.lang.IllegalAccessError
> ------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4324
> URL: https://issues.apache.org/jira/browse/WICKET-4324
> Project: Wicket
> Issue Type: Bug
> Components: wicket-spring
> Reporter: S Mathez
> Labels: proxy
>
> A CGLib proxy created by LazyInitProxyFactory may cause java.lang.IllegalAccessError when the target class has "package-private" method.
> I think the root cause of this problem is the choosen strategy for naming proxies (see WICKET-1162) : after adding "WICKET_" before the package name of the target class, the proxy becomes a member of a new package. (This behaviour is different as which is used by CGLib DefaultNamingPolicy).
> Why not adding "_WICKET" *after* the name of the target class ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira