[cdi-dev] [JBoss JIRA] (CDI-527) allow proxying of classes with non-private final methods

Antoine Sabot-Durand (JIRA) issues at jboss.org
Thu Feb 18 03:56:01 EST 2016

    [ https://issues.jboss.org/browse/CDI-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164738#comment-13164738 ] 

Antoine Sabot-Durand commented on CDI-527:

This feature was voted by the EG on Feb 15th 2016, but a majority of users expressed preference for the introduction of a dedicated annotation to support this advanced feature.
{{@AllowProxy}} was the name proposed by [~struberg] but we could also find a less low level name based on Business Method concept. suggestion are welcome.

As we are about to introduce a new annotation related to proxy behavior, I thought interesting to think about using it for other requested feature. See for example my comment in [CDI-414|https://issues.jboss.org/browse/CDI-414?focusedCommentId=13164732&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13164732]

> allow proxying of classes with non-private final methods
> --------------------------------------------------------
>                 Key: CDI-527
>                 URL: https://issues.jboss.org/browse/CDI-527
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Beans
>    Affects Versions: 1.2.Final
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 2.0 (proposed)
> Currently we explicitly disallow proxying of classes with non-private final methods. 
> EJB _does_ allow this. And there are a few final methods in the JDK and other libs. E.g. HashMap#initHashSeedAsNeeded. Currently we cannot have a producer method for it.
> We might rethink our decision and allow it. Probably with an own annotation like @AllowProxying which disables this check for certain cases (subclass managed-beans or producers).

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list