You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Arne Limburg (JIRA)" <ji...@apache.org> on 2012/10/14 11:55:02 UTC
[jira] [Created] (OWB-714) EmptyStackException when accessing an
instance that is created by a producer method that has an InjectionPoint as
parameter.
Arne Limburg created OWB-714:
--------------------------------
Summary: EmptyStackException when accessing an instance that is created by a producer method that has an InjectionPoint as parameter.
Key: OWB-714
URL: https://issues.apache.org/jira/browse/OWB-714
Project: OpenWebBeans
Issue Type: Bug
Reporter: Arne Limburg
Assignee: Arne Limburg
EmptyStackException when accessing an Instance that is created by a producer method that has an InjectionPoint as parameter.
The following code leads to the exception:
public class MyProducingBean {
@Produces
public MyProducedBean produceBean(InjectionPoint ip) {
...
}
}
public class MyUsingBean {
@Inject
private Instance<MyProducedBean> beanInstance;
public void someMethod() {
beanInstance.get(); // throws EmptyStackException
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-714) EmptyStackException when accessing an
instance that is created by a producer method that has an InjectionPoint as
parameter.
Posted by "Arne Limburg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475813#comment-13475813 ]
Arne Limburg commented on OWB-714:
----------------------------------
I need to check, if this, too, applies to InjectionPoints that are injected into constructors, fields or methods...
> EmptyStackException when accessing an instance that is created by a producer method that has an InjectionPoint as parameter.
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: OWB-714
> URL: https://issues.apache.org/jira/browse/OWB-714
> Project: OpenWebBeans
> Issue Type: Bug
> Reporter: Arne Limburg
> Assignee: Arne Limburg
>
> EmptyStackException when accessing an Instance that is created by a producer method that has an InjectionPoint as parameter.
> The following code leads to the exception:
> public class MyProducingBean {
> @Produces
> public MyProducedBean produceBean(InjectionPoint ip) {
> ...
> }
> }
> public class MyUsingBean {
> @Inject
> private Instance<MyProducedBean> beanInstance;
> public void someMethod() {
> beanInstance.get(); // throws EmptyStackException
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (OWB-714) EmptyStackException when accessing an
instance that is created by a producer method that has an InjectionPoint as
parameter.
Posted by "Arne Limburg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475815#comment-13475815 ]
Arne Limburg commented on OWB-714:
----------------------------------
In addition I need to check what about disposer methods and observer methods...
> EmptyStackException when accessing an instance that is created by a producer method that has an InjectionPoint as parameter.
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: OWB-714
> URL: https://issues.apache.org/jira/browse/OWB-714
> Project: OpenWebBeans
> Issue Type: Bug
> Reporter: Arne Limburg
> Assignee: Arne Limburg
>
> EmptyStackException when accessing an Instance that is created by a producer method that has an InjectionPoint as parameter.
> The following code leads to the exception:
> public class MyProducingBean {
> @Produces
> public MyProducedBean produceBean(InjectionPoint ip) {
> ...
> }
> }
> public class MyUsingBean {
> @Inject
> private Instance<MyProducedBean> beanInstance;
> public void someMethod() {
> beanInstance.get(); // throws EmptyStackException
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira