Hi,
I noticed a difference in behavior between OWB and Weld and wanted to start a
discussion to know which one is right.
It seems that a normal-scoped bean resolved in an EL expression will be the
proxied bean for OWB and the non-proxied bean ("contextual instance") in Weld.
When I asked why the bean returned by Weld was not a proxy, I was directed to
that point of the spec
https://jakarta.ee/specifications/cdi/3.0/jakarta-cdi-spec-3.0.html#el which
says that the ELResolver must return a contextual instance (so not a proxy).
When I tested the same code with OWB, I got a proxy... so both implementations
differ in that matter.
Personally, I prefer the way OWB does it and I don't see where the motivation
to return a contextual instance stems from...
Regards,
Xavier