[cdi-dev] [JBoss JIRA] (CDI-527) allow proxying of classes with non-private final methods
Martin Kouba (JIRA)
issues at jboss.org
Fri Feb 19 04:53:00 EST 2016
[ https://issues.jboss.org/browse/CDI-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13165596#comment-13165596 ]
Martin Kouba commented on CDI-527:
----------------------------------
Correct me if I'm wrong, but if the only way of using this "feature" would be declaring an annotation than we *will not be able to help legacy apps* (compiled against older CDI API, no source available, etc.) - this was one of the requirements often cited in previous comments. Also it might be problematic *to integrate a class we're not able to modify*. Just for completeness - I'm ok with this as both impls provide a non-portable solution already.
> 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
(v6.4.11#64026)
More information about the cdi-dev
mailing list