Hey Romain,
Von: <cdi-dev-bounces@lists.jboss.org<mailto:cdi-dev-bounces@lists.jboss.org>>
on behalf of Romain Manni-Bucau
<rmannibucau@gmail.com<mailto:rmannibucau@gmail.com>>
Datum: Saturday 13 February 2016 23:30
An: "John D. Ament"
<john.d.ament@gmail.com<mailto:john.d.ament@gmail.com>>
Cc: CDI-Dev <cdi-dev@lists.jboss.org<mailto:cdi-dev@lists.jboss.org>>
Betreff: Re: [cdi-dev] [Vote] for CDI-527 / PR 271 allow proxying of classes with
non-private final methods
The gotcha that I still see is around interceptor bindings. They need to be explicitly
disallowed on final methods, and big ole warning put in when you have interceptors on
classes with final methods.
In my experience legacy (framework) code tends to have protected final methods, so the
problems might be less dangerous than they appear first place (regarding interceptors).
I would just warn that a non-proxyable class is proxied, and certain problems arise by
doing so. You can name the problems, sure. But I think it is ok to say (in bold): Yes, we
do what you want. But live with the consequences.
Jens