[cdi-dev] [JBoss JIRA] (CDI-674) Non-deterministic behavior of CDI.current()
John Ament (JIRA)
issues at jboss.org
Fri Dec 23 10:52:00 EST 2016
John Ament created CDI-674:
------------------------------
Summary: Non-deterministic behavior of CDI.current()
Key: CDI-674
URL: https://issues.jboss.org/browse/CDI-674
Project: CDI Specification Issues
Issue Type: Bug
Reporter: John Ament
The behavior of CDI.current() is not deterministic. It uses {{findAny()}}. It should use {{findFirst()}}
{{.findAny().orElseThrow(() -> new IllegalStateException("Unable to access CDI"));}}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the cdi-dev
mailing list