I tried Decorators on Depdenent scoped beans on Weld 1.1.0SP1 today and had
the same result:

1) Changes made to the public field were not reflected in calls to methods
that used that field
2) Non-default @Inject constructors caused them to fail to create the proxy
(and basically blow up with an exception creating the bean to be decorated).

It appears their behavior matches ours for now, but I don't believe either
matches the spec.  Is this something we should ask about on weld-dev?

Sincerely,

Joe

On Thu, Jan 14, 2010 at 9:15 AM, Gurkan Erdogdu <[email protected]>wrote:

> I have tried interceptors on @Dependent  bean on Jboss RI (Weld). I guess
> that their implementation also uses Proxy approach (BeanManager#
> getReference returns proxy instance).
> I have also tried to use not default constructor stuff. It throws
> exception.
> Their implementation is also problematic when using "public fields".
>
> In the mean time, I guess there are some errors with their implementation.
> If one uses separate interceptor class, they uses proxy instance of
> dependent bean, otherwise uses actual bean instance.
>
> 2010/1/13 Joe Bergmark (JIRA) <[email protected]>
>
> >
> >     [
> >
> https://issues.apache.org/jira/browse/OWB-151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
> >
> > Joe Bergmark updated OWB-151:
> > -----------------------------
> >
> >    Attachment: publicFieldTest.patch
> >
> > > @Dependent beans not interceptable
> > > ----------------------------------
> > >
> > >                 Key: OWB-151
> > >                 URL: https://issues.apache.org/jira/browse/OWB-151
> > >             Project: OpenWebBeans
> > >          Issue Type: Bug
> > >          Components: Interceptor and Decorators
> > >    Affects Versions: M3
> > >            Reporter: Eric Covener
> > >            Assignee: Joe Bergmark
> > >             Fix For: M4
> > >
> > >         Attachments: publicFieldTest.patch
> > >
> > >   Original Estimate: 48h
> > >  Remaining Estimate: 48h
> > >
> > > @Dependent beans must be interceptable, although implementations are
> not
> > required to provide a client proxy for them.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Reply via email to