[
https://jira.jboss.org/browse/WELD-557?page=com.atlassian.jira.plugin.sys...
]
Pete Muir commented on WELD-557:
--------------------------------
11.2 - "produce() calls the constructor annotated @Inject if it exists, or the
constructor with no parameters otherwise, as defined in Section 5.5.1, “Injection using
the bean constructor”, and returns the resulting instance. If the class has inter-
ceptors, produce() is responsible for building the interceptors and decorators of the
instance."
If you disagree with the spec here, please raise a
https://jira.jboss.org/jira/browse/CDI
issue
InjectionTarget methods called with a proxied instance
------------------------------------------------------
Key: WELD-557
URL:
https://jira.jboss.org/browse/WELD-557
Project: Weld
Issue Type: Bug
Affects Versions: 1.0.1.Final
Reporter: Jozef Hartinger
Assignee: David Allen
Priority: Critical
Fix For: 1.1.0.BETA1
Let's have a bean whose InjectionTarget is wrapped by an extension to provide
additional dependency injection, etc...
Although it is not explicitly stated in the spec, it is obvious that inject(),
postConstruct() and preDestroy() methods of the InjectionTarget should be called with the
actual raw bean instance and not with a client proxy.
org.jboss.weld.tests.extensions.injectionTarget.InjectionTargetTest
(Consider moving the test into the TCK if the presumtion can be implied)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira