[
https://issues.apache.org/jira/browse/OWB-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13542996#comment-13542996
]
Mark Struberg commented on OWB-714:
-----------------------------------
Not sure if this is really an issue. Instance<T>.get() simply has _no_
InjectionPoint.
We should check this with the EG fellows.
In any case we should blow up with a much more meaningful exception ;)
In general the InjectionPoint story is not fully consistent in the spec. E.g.
the Producer<T>#produce() simply misses the InjectionPoint at all. So it is not
possible to really write a portable Producer<T> for example. PS: I'm talking
about the internal Extension SPI Producer<T> and _not_ the user implemented
producer 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