Not sure what does weld in standalone mode but there JNDI is undefined.
That said it is still a change in behavior so a regression.
Anyone spotted that in the spec or is it a new BDA interpretation of weld?

Fact that the behavior is broken in wildfly and broken in standalone
compared to old version is fishy, means we should use the BM only in
extension somehow which is just not compatible with most CDI code so I'm
quite hesitant to modify DS where Weld is likely the culprit, wdyt?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mar. 5 mars 2024 à 21:18, Thomas Frühbeck <t.fruehb...@gmail.com> a
écrit :

> Ad "initial context lookup": I made a Weld-only test (no EE, no
> InitialContext), which showed the same behavior.
> CDI.current in DS-core is different to CDI.current in
> MethodLevelInterceptorTest run by JUnit.
>
> Am Di., 5. März 2024 um 20:18 Uhr schrieb Romain Manni-Bucau <
> rmannibu...@gmail.com>:
>
> > This is not related to interceptors, this is related to all single
> > deltaspike module from core (BeanManagerProvider) to Data or JSF ones
> > (mainly cause all modules rely on this provider).
> > So overall @Priority does not solve the issue.
> > What is weird is that weld/wildfly changed the behavior of CDI.current to
> > no more align initial context lookup and CDI.current which looks like a
> big
> > bug to me.
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le mar. 5 mars 2024 à 20:13, Thomas Frühbeck <t.fruehb...@gmail.com> a
> > écrit :
> >
> > > Everything reverted, reason once again: Priority!
> > >
> > > DeltaSpikeProxyInterceptorLookup#resolveInterceptors fails because it
> > has a
> > > different BeanManager context!
> > > Will this mean, that all DS interceptor-related logic now
> > needs/requires(!)
> > > Priority annotation?
> > > PR sent.
> > >
> > > Am Sa., 2. März 2024 um 17:44 Uhr schrieb Thomas Frühbeck <
> > > t.fruehb...@gmail.com>:
> > >
> > > > I built a Weld-only test for Partial-Bean-Interceptor.
> > > >
> > > >>
> > > >>
> > >
> >
>

Reply via email to