[weld-issues] [JBoss JIRA] Commented: (WELD-574) ProxyFactory-generated proxies do not intercept overridden methods with covariant return types

Marius Bogoevici (JIRA) jira-events at lists.jboss.org
Thu Jul 29 16:29:49 EDT 2010


    [ https://jira.jboss.org/browse/WELD-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12541991#action_12541991 ] 

Marius Bogoevici commented on WELD-574:
---------------------------------------

The cause for this seems to be that CtClassType.getMethods() will return only the bridge method, but not the new method. Oddly enough, Javassist-generated proxies seem to work fine.

> ProxyFactory-generated proxies do not intercept overridden methods with covariant return types
> ----------------------------------------------------------------------------------------------
>
>                 Key: WELD-574
>                 URL: https://jira.jboss.org/browse/WELD-574
>             Project: Weld
>          Issue Type: Bug
>          Components: Reflection layer
>    Affects Versions: 1.0.1.Final
>            Reporter: Marius Bogoevici
>             Fix For: 1.1.0.BETA1
>
>
> An example can be found in org.jboss.weld.tests.interceptors.hierarchical.InterceptorsWithHierarchyTest - Attacker.cloneMe() is invoked on the raw bean instance and not on the ProxyFactory-generated proxy.
> This is a separate issue from the fact that the test itself tests interception, the problem would appear with every scenario that requires a proxy.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list